mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
more algo optimization
added x11 compiler otions to more algo's
This commit is contained in:
parent
9603479e88
commit
247d70e594
@ -598,7 +598,7 @@ static algorithm_settings_t algos[] = {
|
||||
|
||||
// kernels starting from this will have difficulty calculated by using quarkcoin algorithm
|
||||
#define A_QUARK(a, b) \
|
||||
{ a, ALGO_QUARK, 256, 256, 256, 0, 0, 0xFF, 0xFFFFFFULL, 0x0000ffffUL, 0, 0, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, b, queue_sph_kernel, gen_hash, NULL}
|
||||
{ a, ALGO_QUARK, 256, 256, 256, 0, 0, 0xFF, 0xFFFFFFULL, 0x0000ffffUL, 0, 0, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, b, queue_sph_kernel, gen_hash, append_x11_compiler_options}
|
||||
A_QUARK( "quarkcoin", quarkcoin_regenhash),
|
||||
A_QUARK( "qubitcoin", qubitcoin_regenhash),
|
||||
A_QUARK( "animecoin", animecoin_regenhash),
|
||||
@ -607,7 +607,7 @@ static algorithm_settings_t algos[] = {
|
||||
|
||||
// kernels starting from this will have difficulty calculated by using bitcoin algorithm
|
||||
#define A_DARK(a, b) \
|
||||
{ a, ALGO_X11, 1, 1, 1, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 0, 0, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, b, queue_sph_kernel, gen_hash, NULL}
|
||||
{ a, ALGO_X11, 1, 1, 1, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 0, 0, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, b, queue_sph_kernel, gen_hash, append_x11_compiler_options}
|
||||
A_DARK( "darkcoin", darkcoin_regenhash),
|
||||
A_DARK( "inkcoin", inkcoin_regenhash),
|
||||
A_DARK( "myriadcoin-groestl", myriadcoin_groestl_regenhash),
|
||||
@ -628,7 +628,7 @@ static algorithm_settings_t algos[] = {
|
||||
{ "bitblock", ALGO_X15, 1, 1, 1, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 14, 4 * 16 * 4194304, 0, bitblock_regenhash, queue_bitblock_kernel, gen_hash, append_x13_compiler_options},
|
||||
{ "bitblockold", ALGO_X15, 1, 1, 1, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 10, 4 * 16 * 4194304, 0, bitblock_regenhash, queue_bitblockold_kernel, gen_hash, append_x13_compiler_options},
|
||||
|
||||
{ "talkcoin-mod", ALGO_NIST, 1, 1, 1, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 4, 8 * 16 * 4194304, 0, talkcoin_regenhash, queue_talkcoin_mod_kernel, gen_hash, NULL},
|
||||
{ "talkcoin-mod", ALGO_NIST, 1, 1, 1, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 4, 8 * 16 * 4194304, 0, talkcoin_regenhash, queue_talkcoin_mod_kernel, gen_hash, append_x11_compiler_options},
|
||||
|
||||
{ "fresh", ALGO_FRESH, 1, 256, 256, 0, 0, 0xFF, 0xFFFFULL, 0x0000ffffUL, 4, 4 * 16 * 4194304, 0, fresh_regenhash, queue_fresh_kernel, gen_hash, NULL},
|
||||
|
||||
|
@ -68,13 +68,19 @@ typedef long sph_s64;
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
|
||||
#include "blake.cl"
|
||||
#include "bmw.cl"
|
||||
|
@ -68,13 +68,19 @@ typedef long sph_s64;
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
|
||||
#include "blake.cl"
|
||||
#include "bmw.cl"
|
||||
|
@ -65,9 +65,12 @@ typedef long sph_s64;
|
||||
|
||||
#define SPH_ECHO_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
|
||||
#include "groestl.cl"
|
||||
|
||||
#define SWAP4(x) as_uint(as_uchar4(x).wzyx)
|
||||
|
@ -68,13 +68,19 @@ typedef long sph_s64;
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
|
||||
#include "shavite.cl"
|
||||
|
||||
|
@ -68,14 +68,21 @@ typedef long sph_s64;
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#if !defined SPH_HAMSI_EXPAND_BIG
|
||||
#define SPH_HAMSI_EXPAND_BIG 4
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
#ifndef SPH_HAMSI_EXPAND_BIG
|
||||
#define SPH_HAMSI_EXPAND_BIG 4
|
||||
#endif
|
||||
|
||||
#include "blake.cl"
|
||||
|
@ -65,9 +65,12 @@ typedef long sph_s64;
|
||||
|
||||
#define SPH_ECHO_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
|
||||
#include "groestl.cl"
|
||||
|
||||
#define SWAP4(x) as_uint(as_uchar4(x).wzyx)
|
||||
|
@ -68,13 +68,19 @@ typedef long sph_s64;
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
|
||||
#include "blake.cl"
|
||||
#include "bmw.cl"
|
||||
|
@ -65,9 +65,12 @@ typedef long sph_s64;
|
||||
|
||||
#define SPH_ECHO_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
|
||||
#include "luffa.cl"
|
||||
#include "cubehash.cl"
|
||||
#include "shavite.cl"
|
||||
|
@ -68,13 +68,19 @@ typedef long sph_s64;
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_SIMD_NOCOPY 0
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
|
||||
#define SPH_CUBEHASH_UNROLL 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_LUFFA_PARALLEL
|
||||
#define SPH_LUFFA_PARALLEL 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
|
||||
#include "blake.cl"
|
||||
#include "bmw.cl"
|
||||
|
@ -63,13 +63,18 @@ typedef int sph_s32;
|
||||
#define SPH_ROTL64(x, n) rotate(as_ulong(x), (n) & 0xFFFFFFFFFFFFFFFFUL)
|
||||
#define SPH_ROTR64(x, n) SPH_ROTL64(x, (64 - (n)))
|
||||
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#define SPH_GROESTL_BIG_ENDIAN 0
|
||||
#define SPH_SMALL_FOOTPRINT_GROESTL 0
|
||||
#define SPH_JH_64 1
|
||||
#define SPH_KECCAK_64 1
|
||||
#define SPH_KECCAK_NOCOPY 0
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
|
||||
#ifndef SPH_COMPACT_BLAKE_64
|
||||
#define SPH_COMPACT_BLAKE_64 0
|
||||
#endif
|
||||
#ifndef SPH_KECCAK_UNROLL
|
||||
#define SPH_KECCAK_UNROLL 0
|
||||
#endif
|
||||
|
||||
#include "blake.cl"
|
||||
#include "groestl.cl"
|
||||
|
Loading…
x
Reference in New Issue
Block a user