-
Notifications
You must be signed in to change notification settings - Fork 6
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
detect_half2_vars test/vectorAdd.cu error #3
Comments
Can you run |
Update: did you try to run : |
It solved my problem! Thanks. |
Sorry my bad, still have problem. Here is the error output: ➜ cuda-half2 git:(master) ✗ ../clang-llvm/local/bin/clang-check test/vectorAdd.cu -ast-dump -- --cuda-device-only > output
error: cannot find libdevice for sm_20. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
In file included from <built-in>:1:
/home/zlu24/clang-llvm/local/bin/../lib/clang/4.0.0/include/__clang_cuda_runtime_wrapper.h:66:2: error: "Unsupported CUDA version!"
#error "Unsupported CUDA version!"
^
In file included from <built-in>:1:
In file included from /home/zlu24/clang-llvm/local/bin/../lib/clang/4.0.0/include/__clang_cuda_runtime_wrapper.h:93:
/usr/local/cuda/include/host_config.h:54:2: warning: "host_config.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release.
Please use cuda_runtime_api.h or cuda_runtime.h instead." [-W#warnings]
#warning "host_config.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or c...
^
In file included from <built-in>:1:
In file included from /home/zlu24/clang-llvm/local/bin/../lib/clang/4.0.0/include/__clang_cuda_runtime_wrapper.h:94:
/usr/local/cuda/include/host_defines.h:54:2: warning: "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA
release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-W#warnings]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or ...
^
In file included from <built-in>:1:
/home/zlu24/clang-llvm/local/bin/../lib/clang/4.0.0/include/__clang_cuda_runtime_wrapper.h:108:10: fatal error: 'crt/device_runtime.h' file not found
#include "crt/device_runtime.h"
^~~~~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.
Error while processing /home/zlu24/cuda-half2/test/vectorAdd.cu.
➜ cuda-half2 git:(master) ✗ Seems the reason is cuda version mismatch. I have installed cuda 9, cuda 10, default is cuda 10. What version of cuda do you use? Do I need to install an older version of cuda or pass some additional arguments? |
By the way, do you mind reopening this issue? Since the problem has not been solved and we can discuss in the issue. |
Hi, it is likely the cuda version issues as reported by clang in your error message. I do notice that the very recent versions of cuda (10.0 and 10.1) has some degree of automatic vectorization for simple programs in their compiler nvcc. They also supports half precision conversion on CPU code, maybe you can give it a try. |
I was following the instruction in the README. But got this error:
Any idea about this?
The text was updated successfully, but these errors were encountered: