terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.72k stars 201 forks source link

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

Open huonghld opened 2 years ago

huonghld commented 2 years ago

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/x8664-linux-gnu/libcuda.so

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

elliottslaughter commented 2 years ago

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.