Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
disable CN-GPU AVX impl in libcryptonight
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Weichhold committed Nov 30, 2022
1 parent 641ddc3 commit 0838e98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Native/libcryptonight/xmrig/crypto/cn/CryptoNight_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,15 @@ inline void cryptonight_single_hash_gpu(const uint8_t *__restrict__ input, size_
fesetround(FE_TONEAREST);
# endif

#if true // OW: always use ssse3 to circumvent build problems with CN-GPU AVX impl on some linux systems without AVX2 support
cn_gpu_inner_ssse3<props.iterations(), props.mask()>(ctx[0]->state, ctx[0]->memory);
#else
if (xmrig::Cpu::info()->hasAVX2()) {
cn_gpu_inner_avx<props.iterations(), props.mask()>(ctx[0]->state, ctx[0]->memory);
} else {
cn_gpu_inner_ssse3<props.iterations(), props.mask()>(ctx[0]->state, ctx[0]->memory);
}
#endif

cn_implode_scratchpad<ALGO, SOFT_AES, 0>(ctx[0]);
keccakf(reinterpret_cast<uint64_t*>(ctx[0]->state), 24);
Expand Down

0 comments on commit 0838e98

Please sign in to comment.