Skip to content

Commit 2300eaf

Browse files
committed
reformat macro.h
1 parent f0b01dc commit 2300eaf

File tree

1 file changed

+9
-4
lines changed
  • runtime/core/portable_type/c10/torch/headeronly/macros

1 file changed

+9
-4
lines changed

runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,10 @@ static inline int C10_WARP_SIZE_INTERNAL() {
366366
extern "C" {
367367
C10_IMPORT
368368
#if defined(__SYCL_DEVICE_ONLY__)
369-
extern SYCL_EXTERNAL void
370-
_wassert(const wchar_t* wexpr, const wchar_t* wfile, unsigned line);
369+
extern SYCL_EXTERNAL void _wassert(
370+
const wchar_t* wexpr,
371+
const wchar_t* wfile,
372+
unsigned line);
371373
#else
372374
#if defined(__CUDA_ARCH__)
373375
__host__ __device__
@@ -434,8 +436,11 @@ extern SYCL_EXTERNAL void __assert_fail(
434436
const char* func);
435437
#elif (defined(__EMSCRIPTEN__))
436438
// As defined in assert.h in the Emscripten stdlib
437-
_Noreturn void
438-
__assert_fail(const char* expr, const char* file, int line, const char* func);
439+
_Noreturn void __assert_fail(
440+
const char* expr,
441+
const char* file,
442+
int line,
443+
const char* func);
439444
#else // __SYCL_DEVICE_ONLY__
440445
#if (defined(__CUDA_ARCH__) && !(defined(__clang__) && defined(__CUDA__)))
441446
// CUDA supports __assert_fail function which are common for both device

0 commit comments

Comments
 (0)