Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Godbolt examples in the README fail to compile #1867

Closed
CastilloDel opened this issue Feb 21, 2023 · 1 comment · Fixed by #1868
Closed

Godbolt examples in the README fail to compile #1867

CastilloDel opened this issue Feb 21, 2023 · 1 comment · Fixed by #1868

Comments

@CastilloDel
Copy link

CastilloDel commented Feb 21, 2023

All three of the examples in the README fail to compile in Godbolt with the following error:

clang-10: error: unsupported option '--generate-code'
clang-10: error: no such file or directory: 'arch=compute_80,code=compute_80'
clang-10: warning: Unknown CUDA version 10.2. Assuming the latest supported version 10.1 [-Wunknown-cuda-version]
Compiler returned: 1
@jrhemstad
Copy link
Collaborator

Hm, for some reason those examples seem to be using clang as the CUDA compiler.

That's a bug because we don't formally support clang in Thrust.

They should work if you update the compiler to nvcc, e.g., https://godbolt.org/z/ezWq53KMK

We'll get those links updated so they are correctly using nvcc as the compiler.

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

Successfully merging a pull request may close this issue.

2 participants