-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move compilation of CUDA code to NVRTC #131
Merged
Merged
Changes from all commits
Commits
Show all changes
153 commits
Select commit
Hold shift + click to select a range
9a0a53c
NVRTC support.
nickjbrowning 04c9a0c
added stream back in.
nickjbrowning 9ce24b6
caching was creating issues...
nickjbrowning 8dc3734
fixed stub.
nickjbrowning 5c22c89
fixed cuda stubs.
nickjbrowning 8d2742a
linting.
nickjbrowning 9a21479
update with jittify
nickjbrowning 3e8afce
added some simple temporary tests
nickjbrowning 4679794
update
nickjbrowning 2d22541
x
nickjbrowning 11ac20d
backwards is broken...
nickjbrowning d91dfb0
fixed backwards.
nickjbrowning 5e4237b
fixed backwards + smem update.
nickjbrowning 5fb3c89
removfed smem caching in sphericart::cuda class
nickjbrowning a8aeb25
basic dynamic loading working, issues with some tests...
nickjbrowning 1b441dc
added nvrtcGetErrorString
nickjbrowning 022efb2
demangling ifdef.
nickjbrowning 9b560b1
removed some comments.
nickjbrowning 2aec4c1
fixed cuContext issue.
nickjbrowning 53f1525
minor updates to add macros.
nickjbrowning 8d65e5d
fixed macro choice
nickjbrowning 45d98d5
Merge branch 'main' into nvrtc
frostedoyster 11d6977
fixed linting
nickjbrowning 4af48ab
Fix const conflict
frostedoyster d1ce794
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
frostedoyster ea91723
Fix CUDA stubs
frostedoyster 80043f2
removed faulty macros
nickjbrowning 82f8f2d
formatting
nickjbrowning 70e5f9c
stubs...
nickjbrowning e51085e
jax update.
nickjbrowning 839fe19
updated the include and cuda_src paths
nickjbrowning 82bc168
static linking
nickjbrowning 2e66eb9
removed static linking for now.
nickjbrowning 393b821
Print error code when failing to load the kernels
ceriottm 66fb009
Merge branch 'nvrtc' of github.com:lab-cosmo/sphericart into nvrtc
ceriottm b0c8c74
added explict architecture spec.
nickjbrowning 3f0dd1d
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
nickjbrowning 4b7f4fd
added sync default back.
nickjbrowning b167f44
added in dyn_cuda for architecture compute
nickjbrowning 83cd27a
rename files to cpp, added cudart dl links
nickjbrowning 3e9a6aa
comments.
nickjbrowning 79d5793
comments
nickjbrowning 86db8ee
removed stubs, conditioned out cuda in cpp
nickjbrowning 44cc745
re-adding the CPU-only stubs to get around CI
nickjbrowning 407b81f
comments and removed cuda function from macro.
nickjbrowning ac5bddb
comment.
nickjbrowning e4977fc
removed unused header
nickjbrowning 2438fae
removed some unecessary files
nickjbrowning 0c22605
updated timeout to 1H for CI
nickjbrowning 5e7d7fe
comments and timeouts
nickjbrowning 16dabf8
missing a handle close.
nickjbrowning 8d8b31d
updated to distribute cuda src and search for it.
nickjbrowning 657f520
x
nickjbrowning a0836ad
formatting.
nickjbrowning 9406198
ad package_data to whl deployment.
nickjbrowning bc5a7a4
package_data not required, handled by install.
nickjbrowning 3db55a2
use rfind instead
nickjbrowning 66d70d5
Install sphericart for torch-tests in tox
Luthaf 53a8c99
removed linking against cuda libs, header-only now.
nickjbrowning ac7b4c4
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
nickjbrowning 79c2531
some preliminary stuff for string literal-based work.
nickjbrowning d485ff7
cmake update
nickjbrowning 47a465c
some updates
nickjbrowning 8233a70
still non-functional.
nickjbrowning 1f0f74d
formatting
nickjbrowning 7eba1d6
formatting
nickjbrowning 27cc680
comment and cleanup
nickjbrowning 8d1f361
fixed issue building sphericart.torch
nickjbrowning 988a3c1
updates
nickjbrowning 4e06d2b
added a very ugly hack to get around autograd context issues.
nickjbrowning a2c6f7a
update to fix autograd issues.
nickjbrowning d742b3c
forgot to re-add smem check.
nickjbrowning acd30bb
stub issues
nickjbrowning c550bee
linting
nickjbrowning 2cbbb56
update bench
nickjbrowning acd15ee
minor changes.
nickjbrowning 3e85aeb
separated DynamicCUDA into 3 classes representing RT, driver, nvrtc
nickjbrowning 48f27d3
changed to compile on first launch
nickjbrowning 0cf1809
Merge branch 'main' into nvrtc
nickjbrowning 93bd107
changed data packing to vector
nickjbrowning 9acd1cf
should not be compatible with cuda 11
nickjbrowning ffca329
added a possible parent class for dynamic loading, unused atm.
nickjbrowning 1642440
removed message
nickjbrowning bab09c8
removed experimental dynamic loader class
nickjbrowning e828ea9
remove dunused wrapper
nickjbrowning 92cae0b
removed comments
nickjbrowning 0345556
arch native default to OFF
nickjbrowning f5a280d
Update sphericart/CMakeLists.txt
nickjbrowning 90ff9f1
Update sphericart/CMakeLists.txt
nickjbrowning ea80574
Update sphericart/CMakeLists.txt
nickjbrowning b9b34d7
Update sphericart/CMakeLists.txt
nickjbrowning 972eba6
issue in sphericart_impl, removed intermediary header
nickjbrowning 9973a6d
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
nickjbrowning 6d82aac
removed --define-macro from nvrtc call.
nickjbrowning 2b25654
arch-native back to ON by default.
nickjbrowning 97883a1
Update sphericart/CMakeLists.txt
nickjbrowning b979f57
x
nickjbrowning 01b6898
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
nickjbrowning b827ab0
Update sphericart/include/cuda_cache.hpp
nickjbrowning 2285c91
Update sphericart/include/cuda_cache.hpp
nickjbrowning cac407e
Update sphericart/include/cuda_cache.hpp
nickjbrowning 61c8ca6
Update sphericart/include/cuda_cache.hpp
nickjbrowning 36fe3c5
Update sphericart/include/cuda_cache.hpp
nickjbrowning 109d14b
Update sphericart/include/cuda_cache.hpp
nickjbrowning 393f9a8
Update sphericart/include/cuda_cache.hpp
nickjbrowning 07a74c3
Update sphericart/include/cuda_cache.hpp
nickjbrowning a82a490
Update sphericart/include/dynamic_cuda.hpp
nickjbrowning f9fdc07
Update sphericart/include/dynamic_cuda.hpp
nickjbrowning bf8e648
Update sphericart/include/dynamic_cuda.hpp
nickjbrowning 518464c
Update sphericart/include/dynamic_cuda.hpp
nickjbrowning bbfddeb
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
nickjbrowning a7eae9a
update
nickjbrowning d4c5be4
removed ifdef
nickjbrowning 58590f4
stubs matter
nickjbrowning 25560c8
I forgot another stub
nickjbrowning b4c4b30
I forgot something else in the stub
nickjbrowning 22fdc4c
reverted back to demangling.
nickjbrowning f0de86c
removed comment
nickjbrowning 4d58d39
fixed error
nickjbrowning b2c8e4c
header shuffling
nickjbrowning 264b789
update to fix CI?
nickjbrowning a7f3430
update git ignore.
nickjbrowning 20971bd
added pyc back to ignore, updated tox and cuda_base formatting.
nickjbrowning 1f43725
String quoting
ceriottm 08d4452
Merge branch 'nvrtc' of github.com:lab-cosmo/sphericart into nvrtc
ceriottm e797787
Make sure the jax examples are run on GPU (if available)
frostedoyster 3f5917d
x
nickjbrowning ce9a829
Merge branch 'main' into nvrtc
nickjbrowning ab71510
formatting.
nickjbrowning 800d295
removed block comment
nickjbrowning 8cf7810
removed warning code.
nickjbrowning 5a578d9
formatting.
nickjbrowning f3b3c1f
tox update test
nickjbrowning 4794894
added in nifty counter to get correct constructor/destructor ordering.
nickjbrowning e823f7f
added dlclose calls back in.
nickjbrowning 7d3fea6
slight mod, same result.
nickjbrowning eb309f5
comment.
nickjbrowning 15850df
formatting.
nickjbrowning 1ee85fe
removed comment.
nickjbrowning b433b2e
removed sphericart_jax_cuda.cu, added consts
nickjbrowning c2be239
forgot about the stubs again
nickjbrowning 46718ef
Clean up sphericart-jax-cuda even more
frostedoyster 028b274
Update sphericart/CMakeLists.txt
nickjbrowning 2bac526
Update sphericart/include/cuda_cache.hpp
nickjbrowning d42a9be
Update sphericart/include/dynamic_cuda.hpp
nickjbrowning 9f62d29
updates.
nickjbrowning 4afc4cd
Merge branch 'nvrtc' of https://github.com/lab-cosmo/sphericart into …
nickjbrowning c896ff0
added comments.
nickjbrowning fc90df4
more changes to fix review comments.
nickjbrowning 09709c7
updated comment on remove_pointer
nickjbrowning 0ad7f92
comment update
nickjbrowning 64b1c97
typo.
nickjbrowning fbcfd92
updated runtime error.
nickjbrowning File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,6 @@ def run(self): | |
"sphericart-jax": [ | ||
"sphericart/jax/lib/*", | ||
"sphericart/jax/include/*", | ||
] | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frostedoyster should we purge the instances after some point? Or do we let this map grow unbounded? (This would be for a separate PR!)