Skip to content

How to specify the CUDA architecture to use ? #1170

@fwyzard

Description

@fwyzard

Is there a way to specify which CUDA architecture to build for ?
E.g. sm_35, sm_70, etc ?

Trying with --cuda-gpu-arch does not seem to work:

/data/user/fwyzard/sycl/build/bin/clang++ -O2 -g -fsycl -fsycl-targets=nvptx64-nvidia-cuda-sycldevice -Wno-unknown-cuda-version --cuda-gpu-arch=sm_75 simple-sycl-app.cpp -o simple-sycl-app-cuda
clang-11: warning: argument unused during compilation: '--cuda-gpu-arch=sm_75' [-Wunused-command-line-argument]

Metadata

Metadata

Assignees

Labels

DocumentationMissing documentation for the code, compiler or runtime features, etc.cudaCUDA back-end

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions