1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-09 22:38:05 +00:00
ccminer/scrypt/test_kernel.h
Tanguy Pruvot 9dc78da2ee import and adapt scrypt from cudaminer project
scrypt-jane under work...
2015-04-18 18:24:55 +02:00

31 lines
1.2 KiB
C++

#ifndef TEST_KERNEL_H
#define TEST_KERNEL_H
#include "salsa_kernel.h"
class TestKernel : public KernelInterface
{
public:
TestKernel();
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 bool bindtexture_1D(uint32_t *d_V, size_t size);
virtual bool bindtexture_2D(uint32_t *d_V, int width, int height, size_t pitch);
virtual bool unbindtexture_1D();
virtual bool unbindtexture_2D();
virtual char get_identifier() { return 'f'; };
virtual int get_major_version() { return 1; };
virtual int get_minor_version() { return 0; };
virtual int max_warps_per_block() { return 32; };
virtual int get_texel_width() { return 4; };
virtual int threads_per_wu() { return 4; }
virtual bool support_lookup_gap() { return true; }
virtual cudaSharedMemConfig shared_mem_config() { return cudaSharedMemBankSizeFourByte; }
virtual cudaFuncCache cache_config() { return cudaFuncCachePreferL1; }
};
#endif // #ifndef TEST_KERNEL_H