_CMAKE_CUDA_WHOLE_FLAG issue
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers
Research direction
Reproduce the command with CMAKE_CXX_COMPILER and CMAKE_CUDA_COMPILER set to /usr/bin/circle. Start at CMakeLists.txt:222 and the CMakeDetermineCompilerABI.cmake and CMakeTestCUDACompiler.cmake paths shown in the error. Done means establishing a supported way to use the alternate compiler for the CUDA configuration, or documenting why it cannot be used.
Written by the indexing model from the issue text.
Description
I'm trying to point circle at the nvexec tests. This is what I'm getting:
$ cmake -DCMAKE_CXX_COMPILER=/usr/bin/circle -DCMAKE_CUDA_COMPILER=/usr/bin/circle -DSTDEXEC_ENABLE_CUDA=ON ..
-- The CXX compiler identification is Clang 5.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/circle - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- System : Linux-5.4.0-137-generic
-- System name : Linux
-- System ver : 5.4.0-137-generic
--
-- Library ver : 0.7.0
-- Build date : 2023-03-09
-- Build year : 2023
--
-- CPM: adding package Catch2@2.13.6 (2.13.6)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- The CUDA compiler identification is unknown
-- Detecting CUDA compiler ABI info
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
_CMAKE_CUDA_WHOLE_FLAG
CMake Error at /usr/local/share/cmake-3.26/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
/usr/local/share/cmake-3.26/Modules/CMakeTestCUDACompiler.cmake:19 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:222 (enable_language)
-- Configuring incomplete, errors occurred!
How do I force stdexec to use a different compiler as if it were nvc++?
- Dominant language
- C++
- Stars
- 2.4k
- Forks
- 270
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 37
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/stdexec
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 66/100
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-cli#6547 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·