Skip to content

Commit

Permalink
try to fix gnu-7
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Nov 6, 2024
1 parent 4b1468a commit fa12ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pluto/src/pluto/util/Runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace pluto {

std::size_t devices() {
if constexpr(PLUTO_HAVE_HIC) {
static std::size_t _devices = [](){
static std::size_t _devices = []() -> std::size_t {
int num_devices = 0;
auto err = hicGetDeviceCount(&num_devices);
if (err) {
Expand Down

0 comments on commit fa12ed4

Please sign in to comment.