Skip to content

Commit

Permalink
Fix a warning with nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Sep 18, 2023
1 parent b93be6a commit b96ea4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/alpaka/intrinsic/IntrinsicCpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include "alpaka/core/BoostPredef.hpp"
#include "alpaka/core/Unreachable.hpp"
#include "alpaka/intrinsic/IntrinsicFallback.hpp"
#include "alpaka/intrinsic/Traits.hpp"

Expand Down Expand Up @@ -52,6 +53,7 @@ namespace alpaka
// Fallback to standard library
return static_cast<std::int32_t>(std::bitset<sizeof(UnsignedIntegral) * CHAR_BIT>(value).count());
#endif
ALPAKA_UNREACHABLE(0);
}
};

Expand Down Expand Up @@ -79,6 +81,7 @@ namespace alpaka
#else
return alpaka::detail::ffsFallback(value);
#endif
ALPAKA_UNREACHABLE(0);
}
};
} // namespace trait
Expand Down

0 comments on commit b96ea4e

Please sign in to comment.