Skip to content
Snippets Groups Projects
Commit 7d07af6b authored by psychocrypt's avatar psychocrypt
Browse files

CUDA. fix static in global kernel

Remove `static constexpr` within the global kernel. This is not
supported by all CUDA versions.
parent c0f81dee
No related branches found
No related tags found
No related merge requests found
...@@ -415,7 +415,7 @@ __forceinline__ __device__ void sync() ...@@ -415,7 +415,7 @@ __forceinline__ __device__ void sync()
template<size_t ITERATIONS, uint32_t MEMORY> template<size_t ITERATIONS, uint32_t MEMORY>
__global__ void cryptonight_core_gpu_phase2_gpu(int32_t *spad, int *lpad_in, int bfactor, int partidx, uint32_t * roundVs, uint32_t * roundS) __global__ void cryptonight_core_gpu_phase2_gpu(int32_t *spad, int *lpad_in, int bfactor, int partidx, uint32_t * roundVs, uint32_t * roundS)
{ {
static constexpr uint32_t MASK = ((MEMORY-1) >> 6) << 6; constexpr uint32_t MASK = ((MEMORY-1) >> 6) << 6;
const int batchsize = (ITERATIONS * 2) >> ( 1 + bfactor ); const int batchsize = (ITERATIONS * 2) >> ( 1 + bfactor );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment