Skip to content

Made it possible to disable GPU detection#2424

Open
philip-paul-mueller wants to merge 2 commits into
spcl:mainfrom
philip-paul-mueller:block_probing_for_gpu_with_test_program
Open

Made it possible to disable GPU detection#2424
philip-paul-mueller wants to merge 2 commits into
spcl:mainfrom
philip-paul-mueller:block_probing_for_gpu_with_test_program

Conversation

@philip-paul-mueller

@philip-paul-mueller philip-paul-mueller commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Currently DaCe will always compile and run a test program to determine the CUDA/HIP architecture.
This is problematic because this will create a CUDA-Context and prevents parallel compilations.

The solution proposed by this PR is to introduce the compiler.cuda.no_gpu_arch_detection config variable.
This key instructs CMake to not perform this inference and instead only use compiler.cuda.{hip,cuda}_argch.

An alternative solution, that would not be backwards compatible, is to repurpose compiler.cuda.{hip,cuda}_argch.
If it is given, then no auto detection will take place and the code is compiled only for the architectures listed there.

Furthermore, PR changes the defaults of compiler.cuda.{hip,cuda}_argch which are now empty.
This has the effect that the code is not always compiled for 60 regardless if it is there or not.

@philip-paul-mueller philip-paul-mueller marked this pull request as ready for review July 3, 2026 10:18
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

Successfully merging this pull request may close these issues.

1 participant