-
Notifications
You must be signed in to change notification settings - Fork 20
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
Loading module containig printf seems to fail #2
Comments
It seems like it has something to do with dlopen, because when I use dlopen in cpp code, it also fails. |
Would you please let me know the OS you are using? |
The result of |
This is because
|
I just updated the package, with several bug fixes (e.g. corrected function names and pointer sizes). Please checkout the latest and try again. |
I have extended the example that is described in the readme to print out the thread id. The code then looks like this:
I then compile this code to ptx using:
The -arch=sm_20 is added to make the printf work. However, now I cannot load the module into Julia anymore. It keeps complaining about an invalid kernel image:
However, the code does work when I execute the same calls to libcuda (cuInit, cuDeviceGet, cuCtxCreate and cuModuleLoad) from a program written in C++.
The text was updated successfully, but these errors were encountered: