https://llvm.org/bugs/show_bug.cgi?id=30250

            Bug ID: 30250
           Summary: tex1Dfetch fails to compile
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: CUDA
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

* version: llvm r280452, clang r280436

* reproduce steps:

cat > texture.cu <<EOF
__global__ void test_fetch(cudaTextureObject_t src, int offset, float *dest) {
    dest[0] = tex1Dfetch<float>(src, offset);
}
EOF
./build/bin/clang++ texture.cu -o /dev/null --cuda-gpu-arch=sm_52   


* clang would report:
ptxas fatal   : Unresolved extern function '__tex_1d_v4f32_s32'
clang-4.0: error: ptxas command failed with exit code 255 (use -v to see
invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to