Package RCCL headers to support adding RCCL support w/o installed headers (#1075)
- in ROCm CI, rocprofiler-sdk gets built before RCCL is installed, this is a workaround for this issue
This commit is contained in:
committed by
GitHub
orang tua
d5bcb63263
melakukan
8c1382fceb
@@ -25,7 +25,23 @@
|
||||
#include <rocprofiler-sdk/defines.h>
|
||||
#include <rocprofiler-sdk/version.h>
|
||||
|
||||
#include <rccl/rccl.h>
|
||||
#if !defined(ROCPROFILER_SDK_USE_SYSTEM_RCCL)
|
||||
# if defined __has_include
|
||||
# if __has_include(<rccl/rccl.h>)
|
||||
# define ROCPROFILER_SDK_USE_SYSTEM_RCCL 1
|
||||
# else
|
||||
# define ROCPROFILER_SDK_USE_SYSTEM_RCCL 0
|
||||
# endif
|
||||
# else
|
||||
# define ROCPROFILER_SDK_USE_SYSTEM_RCCL 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if ROCPROFILER_SDK_USE_SYSTEM_RCCL > 0
|
||||
# include <rccl/rccl.h>
|
||||
#else
|
||||
# include <rocprofiler-sdk/rccl/details/rccl.h>
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user