Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ichinii committed Jul 31, 2024
1 parent 7c8b60a commit 20539ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Intern/rayx-core/tests/setupTests.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ inline void add_failure() { ADD_FAILURE(); }
class TestSuite : public testing::Test {
protected:
static void SetUpTestSuite() {
RAYX_LOG << "SetUpTestSuite";
RAYX::error_fn = add_failure;

bool cpu = false;
Expand All @@ -163,9 +164,12 @@ class TestSuite : public testing::Test {
}

// Choose Hardware
RAYX_LOG << "SetUpTestSuite create tracer";
RAYX_LOG << "cpu: " << cpu;
using DeviceType = RAYX::DeviceConfig::DeviceType;
const auto deviceType = cpu ? DeviceType::Cpu : DeviceType::Gpu;
tracer = std::make_unique<RAYX::Tracer>(RAYX::DeviceConfig(deviceType).enableBestDevice());
RAYX_LOG << "SetUpTestSuite created tracer";
}

// called before every test invocation.
Expand Down

0 comments on commit 20539ec

Please sign in to comment.