Skip to content
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

CUDA not enabled, not performing test... #519

Open
huonghld opened this issue Jan 30, 2022 · 1 comment
Open

CUDA not enabled, not performing test... #519

huonghld opened this issue Jan 30, 2022 · 1 comment

Comments

@huonghld
Copy link

I installed Terra with -DTERRA_ENABLE_CMAKE flag ON, and my CmakeCache information contains:

_//Compile device code in 64 bit mode
CUDA_64_BIT_DEVICE_CODE:BOOL=ON

//Attach the build rule to the CUDA source file. Enable only when
// the CUDA source file is added to at most one target.
CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON

//Generate and parse .cubin files in Device mode.
CUDA_BUILD_CUBIN:BOOL=OFF

//Build in Emulation mode
CUDA_BUILD_EMULATION:BOOL=OFF

//"cudart" library
CUDA_CUDART_LIBRARY:FILEPATH=/usr/local/cuda-8.0/lib64/libcudart.so

//"cuda" library (older versions only).
CUDA_CUDA_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcuda.so
_

But when I run cudatest.t, it is said that: "CUDA not enabled, not performing test..."
Please help.

@elliottslaughter
Copy link
Member

The CMake flag was TERRA_ENABLE_CUDA, not TERRA_ENABLE_CMAKE, right?

Print the values of terralib.cudacompile and terralib.cudaloaderror, hopefully those will reveal what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants