Skip to content

Commit

Permalink
Added test Device.getOrdinal.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvbbreu committed Nov 4, 2024
1 parent be64ac2 commit 4e29959
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_cu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ TEST_CASE("Test cu::Device", "[device]") {
<< std::endl;
CHECK(const_mem > 0);
}

SECTION("Test Device.getOrdinal", "[device]") {
const int dev_ordinal = device.getOrdinal();
CHECK(dev_ordinal >= 0);
}
}

TEST_CASE("Test context::getDevice", "[device]") {
Expand Down

0 comments on commit 4e29959

Please sign in to comment.