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
Runtime compilation doesn't respect environment variables for include paths #141
Comments
Hi @lakinwecker have you found a way to overcome this problem? I've got exact the same problem as the installed path of cuda is not standard. I've tried to change all |
@lhoangan No. I never did successfully work around it. I gave up trying to use Opt some time ago. It depends on too many things that are too old and I didn't feel like manually compiling old compilers to get it working. |
The issue happens when the installed version of cuda is different than 7.5. Opt.lib seems to have hard-coded the path to cuda 7.5, however, and this is not configurable hence the error. I found a workaround by making a hard symlink to the installed version of cuda, i.e. run "cmd" with admin provileges and then write: (note change 10.1 to the version that you have currently installed; also the second path may slightly change on your system, so double-check it) |
For future reference, update $CUDA_HOME (for Linux) and $CUDA_PATH (for Windows) works for me |
Good to know. |
The image warping example builds just fine, but it won't run. It has this error:
I updated
../shared/make_template.inc
to point to my install of CUDA and I updatedLD_LIBRARY_PATH
, andC_INCLUDE_PATH
andCPLUS_INCLUDE_PATH
to point to the CUDA includes and library directories respectively, but the example doesn't run:It's probably not running clang with any of the environment variables I have set, and it's also not respecting the makefile.inc settings. How do I tell it where to find cuda during runtime?
The text was updated successfully, but these errors were encountered: