You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says, when compiling CUDA source file with Clang, its object file cannot be recognized by nvprune, and the error is: nvprune fatal : Unexpected fatbin data.
clang --cuda-gpu-arch=sm_70 --cuda-gpu-arch=sm_80 -c foo.cu
cuobjdump foo.o # also OK
nvprune -arch sm_80 foo.o -o foo.stripped.o # nvprune fatal : Unexpected fatbin data
Operating system: Linux (tried both Centos and Ubuntu)
Software version: CUDA version or Clang version doesn't matter, this is almost always reproducible.
The text was updated successfully, but these errors were encountered:
It's hard to tell why nvprune is unhappy, as it's a black box for us. The fatbin is generated using nvidia's own tools, so it's likely that it complains about finding the fatbinary in the object file.
We may want to take a look what NVCC does differently when it embeds GPU binary in a host object and compare it with what clang does. It's possible that things have changed on NVCC side since we've implemented it. How embedding is done is not documented by NVIDIA, so we tend to find out about changes when things break. :-/
As the title says, when compiling CUDA source file with Clang, its object file cannot be recognized by nvprune, and the error is:
nvprune fatal : Unexpected fatbin data
.with nvcc (everything is OK)
with Clang (something wrong)
Operating system: Linux (tried both Centos and Ubuntu)
Software version: CUDA version or Clang version doesn't matter, this is almost always reproducible.
The text was updated successfully, but these errors were encountered: