Skip to content

Commit

Permalink
Fixed build without hwloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendr0id committed Sep 1, 2022
1 parent 6e48ea3 commit 5748f35
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/crypto/ghostrider/ghostrider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,17 +772,14 @@ 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


void benchmark() {}
HelperThread* create_helper_thread(int64_t, int, const std::vector<int64_t>&) { return nullptr; }
void destroy_helper_thread(HelperThread*) {}


template <size_t CORE_ALGO_LIMIT>
void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread*, bool verbose)
{
constexpr uint32_t N = 8;
Expand All @@ -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];
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5748f35

Please sign in to comment.