progminer zano miner fork https://github.com/hyle-team/progminer
This commit is contained in:
20
zano/libethash-cuda/progpow_cuda_miner_kernel_globals.h
Normal file
20
zano/libethash-cuda/progpow_cuda_miner_kernel_globals.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
__constant__ uint32_t d_dag_size;
|
||||
__constant__ hash64_t* d_dag;
|
||||
__constant__ uint32_t d_light_size;
|
||||
__constant__ hash64_t* d_light;
|
||||
__constant__ hash32_t d_header;
|
||||
__constant__ uint64_t d_target;
|
||||
|
||||
#if (__CUDACC_VER_MAJOR__ > 8)
|
||||
#define SHFL(x, y, z) __shfl_sync(0xFFFFFFFF, (x), (y), (z))
|
||||
#else
|
||||
#define SHFL(x, y, z) __shfl((x), (y), (z))
|
||||
#endif
|
||||
|
||||
#if (__CUDA_ARCH__ >= 320)
|
||||
#define LDG(x) __ldg(&(x))
|
||||
#else
|
||||
#define LDG(x) (x)
|
||||
#endif
|
Reference in New Issue
Block a user