问题
I want to use store function with cache hint __stcs
on GPU Pascal, CUDA 10.0.
In CUDA C++ Programming Guide there is no mention of any header for data type unsigned long long
, but the compiler return an error identifier "__stcs" is undefined
.
How to fix this compilation error?
回答1:
These intrinsics require CUDA 11.0, they are new for CUDA 11.0.
If you look at the CUDA 10.0 programming guide you will see they are not mentioned. You can also see that they are mentioned in the "changes from Version 10.2" section of the 11.0 programming guide.
You also need to compile for compute capability 3.5 or higher.
来源:https://stackoverflow.com/questions/62664165/cuda-error-identifier-stcs-is-undefined