Skip to content

Commit

Permalink
[SYCL][COMPAT] Reduced verbosity of macro definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alcpz committed Mar 18, 2024
1 parent b462ba4 commit 4fd7a29
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sycl/include/syclcompat/defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ template <int Arg> class syclcompat_kernel_scalar;
#if defined(_MSC_VER)
#define __syclcompat_align__(n) __declspec(align(n))
#define __syclcompat_inline__ __forceinline
#define __syclcompat_noinline__ __declspec(noinline)
#else
#define __syclcompat_align__(n) __attribute__((aligned(n)))
#define __syclcompat_inline__ __inline__ __attribute__((always_inline))
#endif

#if defined(_MSC_VER)
#define __syclcompat_noinline__ __declspec(noinline)
#else
#define __syclcompat_noinline__ __attribute__((noinline))
#endif

Expand Down

0 comments on commit 4fd7a29

Please sign in to comment.