Skip to content

Commit f6be34e

Browse files
author
Jason G. Tong
committed
Macro name change from USE_AMDHIP_BACKEND to USE_AMD_BACKEND
1 parent 5c47d9b commit f6be34e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ethminer/libethash-sycl/ethash_sycl_miner_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void ethash_calculate_dag_item(uint32_t start, sycl::nd_item<1> item_ct1, uint32
116116
else if (item_ct1.get_sub_group().get_local_id() < 32)
117117
shuffle_index = item_ct1.get_sub_group().shuffle(parent_index, t + 28);
118118

119-
#ifdef USE_AMDHIP_BACKEND // Shuffle on AMD GPUs is done over 64 threads
119+
#ifdef USE_AMD_BACKEND // Shuffle on AMD GPUs is done over 64 threads
120120
else if (item_ct1.get_sub_group().get_local_id() < 36)
121121
shuffle_index = item_ct1.get_sub_group().shuffle(parent_index, t + 32);
122122
else if (item_ct1.get_sub_group().get_local_id() < 40)
@@ -156,7 +156,7 @@ void ethash_calculate_dag_item(uint32_t start, sycl::nd_item<1> item_ct1, uint32
156156
w1 = w + 24;
157157
else if (iSubGroupThreadId < 32)
158158
w1 = w + 28;
159-
#ifdef USE_AMDHIP_BACKEND
159+
#ifdef USE_AMD_BACKEND
160160
else if (iSubGroupThreadId < 36)
161161
w1 = w + 32;
162162
else if (iSubGroupThreadId < 40)

ethminer/libethash-sycl/ethash_sycl_miner_kernel_globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ std::vector<int> const vShuffleOffsets({
5858
24,
5959
24,
6060
24,
61-
#ifdef USE_AMDHIP_BACKEND
61+
#ifdef USE_AMD_BACKEND
6262
32,
6363
32,
6464
32,

0 commit comments

Comments
 (0)