1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-08 22:07:56 +00:00
ccminer/scrypt/nv_kernel2.h

31 lines
1.0 KiB
C
Raw Normal View History

#ifndef NV2_KERNEL_H
#define NV2_KERNEL_H
#include "miner.h"
#include <cuda_runtime.h>
#include "salsa_kernel.h"
class NV2Kernel : public KernelInterface
{
public:
NV2Kernel();
virtual void set_scratchbuf_constants(int MAXWARPS, uint32_t** h_V);
virtual bool run_kernel(dim3 grid, dim3 threads, int WARPS_PER_BLOCK, int thr_id, cudaStream_t stream, uint32_t* d_idata, uint32_t* d_odata, unsigned int N, unsigned int LOOKUP_GAP, bool interactive, bool benchmark, int texture_cache);
virtual char get_identifier() { return 'T'; };
virtual int get_major_version() { return 3; };
virtual int get_minor_version() { return 5; };
virtual int max_warps_per_block() { return 24; };
virtual int get_texel_width() { return 4; };
virtual bool no_textures() { return true; }
virtual bool support_lookup_gap() { return true; }
virtual cudaSharedMemConfig shared_mem_config() { return cudaSharedMemBankSizeFourByte; }
virtual cudaFuncCache cache_config() { return cudaFuncCachePreferL1; }
};
#endif // #ifndef NV2_KERNEL_H