https://github.com/jcuda/jcuda-utils
Utility classes for JCuda
https://github.com/jcuda/jcuda-utils
Last synced: 3 months ago
JSON representation
Utility classes for JCuda
- Host: GitHub
- URL: https://github.com/jcuda/jcuda-utils
- Owner: jcuda
- License: mit
- Created: 2016-09-06T21:43:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T17:10:13.000Z (almost 9 years ago)
- Last Synced: 2025-03-12T13:23:11.115Z (10 months ago)
- Language: Java
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jcuda-utils
Utility classes for JCuda.
NOTE: These classes have not been updated for a while. They originally have
been contained in the utlities package at
http://jcuda.org/utilities/utilities.html.
Most of them are Java ports of the functions that have been contained in the
`cutil.h` header of the CUDA SDK up to CUDA 5.0, which are now contained, in
a similar form, in the `samples/common` headers of the CUDA SDK.
The most important class in this library is the `KernelLauncher` class, which
significantly simplified the kernel invocation in CUDA versions up to version
4.0. With the `cuLaunchKernel` function that was introduced in CUDA 4.0, the
kernel invocation now is far simpler, but the `KernelLauncher` class still
allows to call kernels more conveniently.
The `KernelLauncher` had the additional benefit of allowing to directly
compile source code that was given as a `String` by invoking the NVCC in the
backround. With the introduction of the
[NVRTC](http://docs.nvidia.com/cuda/nvrtc/index.html) in CUDA 7.5, it is
now also possible to do a real, pure runtime compilation of source code
with plain CUDA API calls. The `KernelLauncher` may be updated in the
future to reflect these extensions.