cicd(gcc): add job with gcc 12 and nvcc 12.2.0 #211
Merged
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.
Summary
Cuda 12.2.0
withgcc 12
.pthread.h
include in thenvtx
connector (only fromgcc 12
onwards).Details
In order to make the missing
pthread.h
problem appear, I needed to compile withgcc 12
, which is not the default compiler inUbuntu 22.04
images.Therefore, the actions strategy matrix now has a
compiler
component, that can be set todefault
or anything else.default
will installgcc
andg++
. For instance, inUbuntu 22.04
images it is version 11.{c : my_c_compiler, cpp : my_cpp_compiler}
. It will install these compilers instead.Then just set
CC
orCXX
to instructCMake
which compilers to use.Note that for the
Cuda
preset case, we also need to setNVCC_WRAPPER_DEFAULT_COMPILER
because it will useKokkos
'snvcc_wrapper
that by default usesg++
for thec++
compiler.