add hip tests

This commit is contained in:
amdsc21
2023-03-11 00:38:16 +01:00
parent e961016e71
commit 204d0c9a53
18 changed files with 76 additions and 20 deletions

View File

@@ -0,0 +1,4 @@
#if defined(XGBOOST_USE_HIP)
#include "test_auc.cu"
#endif

View File

@@ -0,0 +1,4 @@
#if defined(XGBOOST_USE_HIP)
#include "test_elementwise_metric.cu"
#endif

View File

@@ -0,0 +1,4 @@
#if defined(XGBOOST_USE_HIP)
#include "test_multiclass_metric.cu"
#endif

View File

@@ -3,7 +3,7 @@
#include "../helpers.h"
#if !defined(__CUDACC__)
#if !defined(__CUDACC__) && !defined(__HIP_PLATFORM_AMD__)
TEST(Metric, AMS) {
auto ctx = xgboost::CreateEmptyGenericParam(GPUIDX);
EXPECT_ANY_THROW(xgboost::Metric::Create("ams", &ctx));

View File

@@ -0,0 +1,4 @@
#if defined(XGBOOST_USE_HIP)
#include "test_rank_metric.cu"
#endif

View File

@@ -0,0 +1,4 @@
#if defined(XGBOOST_USE_HIP)
#include "test_survival_metric.cu"
#endif