Skip to content

Commit

Permalink
Switch to using gcnArchName
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Oct 30, 2024
1 parent 38f170d commit 4894fd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ inline hipError_t is_sleep_scan_state_used(bool& use_sleep)
#else
const int asicRevision = 0;
#endif
use_sleep = prop.gcnArch == 908 && asicRevision < 2;
use_sleep = prop.gcnArchName == "908" && asicRevision < 2;
return hipSuccess;
}

Expand Down
4 changes: 2 additions & 2 deletions rocprim/include/rocprim/device/device_partition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ hipError_t partition_impl(void * temporary_storage,
start = std::chrono::high_resolution_clock::now();
}

if (prop.gcnArch == 908 && asicRevision < 2)
if (prop.gcnArchName == "908" && asicRevision < 2)
{
hipLaunchKernelGGL(
HIP_KERNEL_NAME(init_lookback_scan_state_kernel<offset_scan_state_with_sleep_type>),
Expand All @@ -287,7 +287,7 @@ hipError_t partition_impl(void * temporary_storage,

grid_size = current_number_of_blocks;

if (prop.gcnArch == 908 && asicRevision < 2)
if (prop.gcnArchName == "908" && asicRevision < 2)
{
hipLaunchKernelGGL(
HIP_KERNEL_NAME(partition_kernel<SelectMethod, OnlySelected, config>),
Expand Down
4 changes: 2 additions & 2 deletions rocprim/include/rocprim/device/device_scan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ auto scan_impl(void * temporary_storage,
std::cout << "items_per_block " << items_per_block << '\n';
}

if (prop.gcnArch == 908 && asicRevision < 2)
if (prop.gcnArchName == "908" && asicRevision < 2)
{
hipLaunchKernelGGL(
HIP_KERNEL_NAME(init_lookback_scan_state_kernel<scan_state_with_sleep_type>),
Expand All @@ -493,7 +493,7 @@ auto scan_impl(void * temporary_storage,

if(debug_synchronous) start = std::chrono::high_resolution_clock::now();
grid_size = number_of_blocks;
if (prop.gcnArch == 908 && asicRevision < 2)
if (prop.gcnArchName == "908" && asicRevision < 2)
{
hipLaunchKernelGGL(
HIP_KERNEL_NAME(lookback_scan_kernel<
Expand Down

0 comments on commit 4894fd7

Please sign in to comment.