[llvm-bugs] [Bug 30250] New: tex1Dfetch fails to compile

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 1 19:20:43 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: jia.kai66 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160902/80f160a9/attachment.html>


More information about the llvm-bugs mailing list