Displaying 2 results from an estimated 2 matches for "xcuda".
Did you mean:
cuda
2016 Oct 14
2
LLVM/CLANG: CUDA compilation fail for inline assembly code
...know-on-which-sm-a-thread-is-running-/2/?offset=21#4996171>
):
- static __device__ uint get_smid(void) {
- uint ret;
- asm("mov.u32 %0, %smid;" : "=r"(ret) );
- return ret;
- }
The original make file has nvcc compiler with a flag -Xptxas -v. It
compiles with nvcc.
LLVM has -Xcuda-ptxas <arg>, which I believe is the comparable command for
compiling PTX code. I get following error when I try compiling (clang 4.0).:
1. ../../include/cutil_subset.h:23:25: error: invalid % escape in inline
assembly string
2. asm("mov.u32 %0, %smid;" : "=r"(re...
2017 Aug 16
3
CUDA separate compilation
Clang currently doesn't support CUDA separate compilation and thus extern
__device__ functions and variables cannot be used.
Could someone give me any pointers where to look or what has to be done to
support this? If at all possible, I'd like to see what's missing and
possibly try to tackle it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: