#1754 Fixed GPU health readings for pre Vega GPUs.

This commit is contained in:
XMRig 2020-07-03 21:14:21 +07:00
parent ccfbba94f2
commit bf32802a82
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 9 additions and 3 deletions

View file

@ -187,7 +187,7 @@ void ethash_calculate_dag_item4_opt(
ethash_light_t const light
)
{
node const* cache_nodes = (node const*)light->cache;
node const* cache_nodes = (node const*)light->cache;
for (size_t i = 0; i < 4; ++i) {
node const* init = &cache_nodes[fast_mod(node_index + i, light->num_parent_nodes, light->reciprocal, light->increment, light->shift)];
@ -197,7 +197,7 @@ void ethash_calculate_dag_item4_opt(
}
for (uint32_t i = 0; i != num_parents; ++i) {
node* parent[4];
node const* parent[4];
for (uint32_t j = 0; j < 4; ++j) {
const uint32_t parent_index = fast_mod(fnv_hash((node_index + j) ^ i, ret[j].words[i % NODE_WORDS]), light->num_parent_nodes, light->reciprocal, light->increment, light->shift);