Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g++ Compiling problems #5

Open
Thaumaturge2020 opened this issue Jul 10, 2024 · 1 comment
Open

g++ Compiling problems #5

Thaumaturge2020 opened this issue Jul 10, 2024 · 1 comment

Comments

@Thaumaturge2020
Copy link

Thaumaturge2020 commented Jul 10, 2024

I'm compiling the project in Ubuntu22.04,clang compiler,nvidia-driver-535 environment

use the following commands:

$ rm -rf *
$ cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. # Initial configuration
$ make

and get errors as follows:

image

is there something wrong with my commands?Could someone held the similar problem and found the methods to fixed it shared the methods?

@Thaumaturge2020 Thaumaturge2020 changed the title my issue g++ Compiling problems Jul 10, 2024
@Thaumaturge2020
Copy link
Author

I fixed it by modifying the CMakeCache.txt:

375: LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES:STRING=30

Change it to other compute_capabilities and it'll be ok to compile.

etc.

375: LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES:STRING=60

I guess it's my GPU driver's problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant