Skip to content

Commit

Permalink
Update to nvhpc 23.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jul 25, 2023
1 parent 5362b81 commit b376b17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ jobs:
install_extra: intel-oneapi-compiler-dpcpp-cpp g++-12 # for libstdc++
cxx_flags: --gcc-install-dir=/usr/lib/gcc/x86_64-linux-gnu/12
- name: build-ubuntu-nvc++
cxx: /opt/nvidia/hpc_sdk/Linux_x86_64/22.9/compilers/bin/nvc++
cxx: /opt/nvidia/hpc_sdk/Linux_x86_64/23.5/compilers/bin/nvc++
add_nvcpp_repo: true
install_extra: nvhpc-22-9
install_extra: nvhpc-23-5

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 9 additions & 1 deletion tests/recordref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "common.hpp"

#include <algorithm>
#include <cstdio>
#include <sstream>
#include <vector>

Expand All @@ -29,6 +30,13 @@ namespace
record(tag::Vel{}, tag::Y{}) = 4;
record(tag::Vel{}, tag::Z{}) = 5;
record(tag::Mass{}) = 6;

#if defined(__NVCOMPILER) && __NVCOMPILER_MAJOR__ >= 23
// nvc++ somehow optimizes out the return of record but corrupts the value, so we make it escape to prevent
// compiler optimizations
printf("", &record);
#endif

return record;
}
} // namespace
Expand Down Expand Up @@ -1198,7 +1206,7 @@ TEST_CASE("decayCopy")
STATIC_REQUIRE(std::is_same_v<decltype(llama::decayCopy(42)), int>);
const int i = 42;
STATIC_REQUIRE(std::is_same_v<decltype(llama::decayCopy(i)), int>);
const int& ir = i;
[[maybe_unused]] const int& ir = i;
STATIC_REQUIRE(std::is_same_v<decltype(llama::decayCopy(ir)), int>);

auto mapping = llama::mapping::BitPackedIntSoA<llama::ArrayExtents<int, 4>, Vec3I>{{}, 17};
Expand Down

0 comments on commit b376b17

Please sign in to comment.