-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow to set a CMAKE_CUDA_STANDARD
different from CMAKE_CXX_STANDARD
#700
Draft
aurianer
wants to merge
6
commits into
pika-org:main
Choose a base branch
from
aurianer:separate_cuda_and_cxx_standards
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
70ad974
Allow to set a CMAKE_CUDA_STANDARD different from CMAKE_CXX_STANDARD
aurianer ac59b58
Change CI config to have separate cuda and cxx standards
aurianer 68a11a7
Constrain fmt to version 9, errors with 10
aurianer cd122c4
Set cuda_std_* only if CMAKE_CUDA_STANDARD defined
aurianer 9269dd1
Add a configuration with cuda stdexec using different standards
aurianer 1f95f41
Set skip_pr to false for gcc-cuda-11-stdexec configuration
aurianer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2020 ETH Zurich | ||
# | ||
# SPDX-License-Identifier: BSL-1.0 | ||
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
configuration_slurm_constraint="gpu" | ||
configuration_skip_pr="false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2020 ETH Zurich | ||
# | ||
# SPDX-License-Identifier: BSL-1.0 | ||
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
cxx_std="20" | ||
cuda_std="17" | ||
gcc_version="9.3.0" | ||
boost_version="1.75.0" | ||
hwloc_version="2.0.3" | ||
cuda_version="11.2.0" | ||
fmt_version="9.1.0" | ||
stdexec_version="git.4b441f333adaeb8eb0a6c7f38d36af30fa7ab366=main" | ||
spack_compiler="gcc@${gcc_version}" | ||
spack_arch="cray-cnl7-haswell" | ||
|
||
spack_spec="pika@main arch=${spack_arch} %${spack_compiler} +cuda malloc=system cxxstd=${cxx_std} +stdexec ^boost@${boost_version} ^hwloc@${hwloc_version} ^cuda@${cuda_version} ^fmt@${fmt_version} ^stdexec@${stdexec_version}" | ||
|
||
configure_extra_options+=" -DPIKA_WITH_CXX_STANDARD=${cxx_std}" | ||
configure_extra_options+=" -DCMAKE_CUDA_STANDARD=${cuda_std}" | ||
configure_extra_options+=" -DPIKA_WITH_MALLOC=system" | ||
configure_extra_options+=" -DPIKA_WITH_CUDA=ON" | ||
configure_extra_options+=" -DPIKA_WITH_EXAMPLES_OPENMP=ON" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the problem with 10.0.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://gist.githubusercontent.com/aurianer/ac750bcf87d7d71846864ae16a5f5d00/raw/b91eeef989c28a4c659a7bed5d3e96b2c650f357/compiling_cuda_sender_test_stdexec_fmt10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. During compilation of which file does that happen?
We definitely have that covered here:
pika/libs/pika/logging/include/pika/logging/level.hpp
Lines 61 to 69 in 41b4abb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of the cuda files, the error I pasted is for
cuda_sender_test
though, will try to add the GPU stdexec and then see what's happening