@@ -394,34 +394,6 @@ struct KernelLauncher {
394
394
395
395
} // namespace fbgemm_gpu::utils
396
396
397
- // //////////////////////////////////////////////////////////////////////////////
398
- // Macro to create a compile-time concatenation of __TEMPLATE_SOURCE_FILE__ and
399
- // __FILE__
400
- //
401
- // This is used for reporting the template filename into to Torch DSA. Runtime
402
- // strings cannot be used here because the Torch DSA error reporting mechanism
403
- // is located higher in the stack than where the DSA launch_registry.insert() is
404
- // called, and requires a compile-timme defined char * for the reporting to work
405
- // correctly.
406
- // //////////////////////////////////////////////////////////////////////////////
407
-
408
- #ifdef __TEMPLATE_SOURCE_FILE__
409
- #define DSA_FILESRC_IMPL " [" __TEMPLATE_SOURCE_FILE__ " ] " __FILE__
410
- #else
411
- #define DSA_FILESRC_IMPL __FILE__
412
- #endif
413
-
414
- // //////////////////////////////////////////////////////////////////////////////
415
- // Macro to define _FKL_TFILE_ to be __TEMPLATE_SOURCE_FILE__ if it is defined,
416
- // else empty string
417
- // //////////////////////////////////////////////////////////////////////////////
418
-
419
- #ifdef __TEMPLATE_SOURCE_FILE__
420
- #define _FKL_TFILE_ __TEMPLATE_SOURCE_FILE__
421
- #else
422
- #define _FKL_TFILE_ " "
423
- #endif
424
-
425
397
// //////////////////////////////////////////////////////////////////////////////
426
398
// Enable Kernel Barrier Isolation
427
399
//
@@ -453,25 +425,6 @@ struct KernelLauncher {
453
425
#define _FKL_TENSORCHECK_ false
454
426
#endif
455
427
456
- // //////////////////////////////////////////////////////////////////////////////
457
- // SourceContext Builder Macro
458
- //
459
- // This macro is used to build a SourceContext object for the kernel launcher,
460
- // can be used elsewhere as well.
461
- //
462
- // NOTE: The builder is defined as a macro in specifically in this header file ,
463
- // instead of static class method in source_context.h, so that __FILE__ and
464
- // __TEMPLATE_SOURCE_FILE__ can be correctly expanded to point to actual call
465
- // site.
466
- // //////////////////////////////////////////////////////////////////////////////
467
-
468
- #define SOURCE_CONTEXT_CURRENT (KERNEL ) \
469
- fbgemm_gpu::utils::SourceContext ( \
470
- fbgemm_gpu::utils::source_location::current (), \
471
- #KERNEL, \
472
- _FKL_TFILE_, \
473
- DSA_FILESRC_IMPL);
474
-
475
428
// //////////////////////////////////////////////////////////////////////////////
476
429
// Kernel Launcher Macros for FBGEMM GPU Kernels
477
430
//
0 commit comments