From 5748f352bb1d35a9b3a90ada8d5ff85622787b42 Mon Sep 17 00:00:00 2001 From: BenDr0id Date: Thu, 1 Sep 2022 20:36:48 +0200 Subject: [PATCH] Fixed build without hwloc --- src/crypto/ghostrider/ghostrider.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/crypto/ghostrider/ghostrider.cpp b/src/crypto/ghostrider/ghostrider.cpp index 2d0cb1c27b..f13f04ddee 100644 --- a/src/crypto/ghostrider/ghostrider.cpp +++ b/src/crypto/ghostrider/ghostrider.cpp @@ -772,9 +772,6 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct } } -template void hash_octa<11>(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread* helper, bool verbose); -template void hash_octa<15>(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread* helper, bool verbose); - #else // XMRIG_FEATURE_HWLOC @@ -782,7 +779,7 @@ void benchmark() {} HelperThread* create_helper_thread(int64_t, int, const std::vector&) { return nullptr; } void destroy_helper_thread(HelperThread*) {} - +template void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread*, bool verbose) { constexpr uint32_t N = 8; @@ -795,7 +792,7 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct // PrevBlockHash (GhostRider's seed) is stored in bytes [4; 36) const uint8_t* seed = data + 4; - uint32_t core_indices[15]; + uint32_t core_indices[CORE_ALGO_LIMIT]; select_indices(core_indices, seed); uint32_t cn_indices[6]; @@ -871,6 +868,8 @@ void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ct #endif // XMRIG_FEATURE_HWLOC +template void hash_octa<11>(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread* helper, bool verbose); +template void hash_octa<15>(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread* helper, bool verbose); } // namespace ghostrider