intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.22k stars 730 forks source link

[bug] how to solve compile sycl-toolchain code occur error: '/tmp/libsycl-fallback-imf-d878ec.cubin': Permission denied #7677

Open wangzy0327 opened 1 year ago

wangzy0327 commented 1 year ago

Describe the bug

sometimes occur the following error. how to solve it ? clang-16: warning: linked binaries do not contain expected 'nvptx64-nvidia-cuda' target; found targets: 'nvptx64-nvidia-cuda-sm_50' [-Wsycl-target] /home/wzy/sycl_workspace/build-cuda-2022-09-debug/bin/clang-offload-bundler: error: '/tmp/libsycl-fallback-imf-d878ec.cubin': Permission denied clang-16: error: clang-offload-bundler command failed with exit code 1 (use -v to see invocation) CMakeFiles/hello-sycl.dir/build.make:102: recipe for target 'hello-sycl' failed gmake[2]: [hello-sycl] Error 1 CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/hello-sycl.dir/all' failed gmake[1]: [CMakeFiles/hello-sycl.dir/all] Error 2

To Reproduce

any sycl-example code occurs the error.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

zjin-lcf commented 1 year ago

Any permission error with the DPC++ version (sycl-2022-06) ?

wangzy0327 commented 1 year ago

Any permission error with the DPC++ version (sycl-2022-06) ?

No,I use the version (sycl-2022-09)

ba432489b8576b5750743007ab3772e

OS: [Ubuntu-18.04]

image

wangzy0327 commented 1 year ago

how to solve the problem? Does the new release version solve this problem?@zjin-lcf @mmoadeli @dm-vodopyanov

zjin-lcf commented 1 year ago

I am not sure if people can reproduce the error. Do you observe the same error after building the compiler from the latest development ?

wangzy0327 commented 1 year ago

I am not sure if people can reproduce the error. Do you observe the same error after building the compiler from the latest development ?

Yes,I observe the same error after building the compiler from the 2022-09 latest development

zjin-lcf commented 1 year ago

My question may be confusing. I was referring to a build from the clone of the repo. In addition, I happened to notice the 2022-12 release note https://github.com/intel/llvm/pull/8154/commits/3294c20b8b4f113437b41dbeb9b013930ad24d33

wangzy0327 commented 1 year ago

I build from the clone of the repo which version is 2022-09.

github-actions[bot] commented 4 days ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be automatically closed in 30 days.