Skip to content

Commit 25de680

Browse files
committed
gpu: jit: gemm: add __cpp_lib_source_location defined guard
1 parent 1fafd12 commit 25de680

File tree

1 file changed

+1
-1
lines changed
  • src/gpu/intel/jit/gemm/include/internal

1 file changed

+1
-1
lines changed

src/gpu/intel/jit/gemm/include/internal/utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class hw_unsupported_exception : public std::runtime_error {
9393
hw_unsupported_exception() : std::runtime_error("Unsupported in hardware") {}
9494
};
9595

96-
#if __cpp_lib_source_location >= 201907L
96+
#if defined(__cpp_lib_source_location) && __cpp_lib_source_location >= 201907L
9797
[[noreturn]] static inline void stub(
9898
std::source_location where = std::source_location::current()) {
9999
throw stub_exception(where.file_name(), where.line());

0 commit comments

Comments
 (0)