fix helpers.h, enable HIP
This commit is contained in:
parent
83e6fceb5c
commit
4a24ca2f95
@ -39,13 +39,13 @@
|
||||
#define GPUIDX -1
|
||||
#endif
|
||||
|
||||
#if defined(__CUDACC__)
|
||||
#if defined(__CUDACC__) || defined(__HIP_PLATFORM_AMD__)
|
||||
#define DeclareUnifiedDistributedTest(name) MGPU ## name
|
||||
#else
|
||||
#define DeclareUnifiedDistributedTest(name) name
|
||||
#endif
|
||||
|
||||
#if defined(__CUDACC__)
|
||||
#if defined(__CUDACC__) || defined(__HIP_PLATFORM_AMD__)
|
||||
#define WORLD_SIZE_FOR_TEST (xgboost::common::AllVisibleGPUs())
|
||||
#else
|
||||
#define WORLD_SIZE_FOR_TEST (3)
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
|
||||
#if defined(XGBOOST_USE_HIP)
|
||||
#include "test_ranking_obj_gpu.cu"
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user