Skip to content

Commit

Permalink
[DeviceSanitizer] Ensure __USE_SPIR_BUILTIN__ has a value (#16570)
Browse files Browse the repository at this point in the history
Ensure that `__USE_SPIR_BUILTIN__` is defined to the value `0` when
`defined(__SPIR__) || defined(__SPIRV__)` is false to fix build errors
like this:

libdevice/include/sanitizer_defs.hpp:51:25: error: expected value in
expression
       51 | #if __USE_SPIR_BUILTIN__
          |                         ^
  • Loading branch information
kbenzie authored Jan 9, 2025
1 parent ac1b3b6 commit 531b76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdevice/include/sanitizer_defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ enum ADDRESS_SPACE : uint32_t {

#else // __SYCL_DEVICE_ONLY__

#define __USE_SPIR_BUILTIN__
#define __USE_SPIR_BUILTIN__ 0

#endif // __SYCL_DEVICE_ONLY__

Expand Down

0 comments on commit 531b76e

Please sign in to comment.