Skip to content

Commit

Permalink
Disable texture cache test on gfx94x
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Jun 28, 2023
1 parent 10bb1bb commit e0311e4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/rocprim/test_texture_cache_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,18 @@ TYPED_TEST(RocprimTextureCacheIteratorTests, Transform)
{
int device_id = test_common_utils::obtain_device_from_ctest();
SCOPED_TRACE(testing::Message() << "with device_id = " << device_id);

hipDeviceProp_t props;
HIP_CHECK(hipGetDeviceProperties(&props, device_id));
std::string deviceName = std::string(props.gcnArchName);
if (deviceName.rfind("gfx94", 0) == 0) {
// This is a gfx94x device, so skip this test
SCOPED_TRACE(testing::Message() << "Skipping texture cache text for " << deviceName);
return;
}

HIP_CHECK(hipSetDevice(device_id));

using T = typename TestFixture::input_type;
using Iterator = typename rocprim::texture_cache_iterator<T>;
const bool debug_synchronous = TestFixture::debug_synchronous;
Expand Down

0 comments on commit e0311e4

Please sign in to comment.