Skip to content

Commit

Permalink
Added Pluck algo
Browse files Browse the repository at this point in the history
  • Loading branch information
troky committed Mar 10, 2015
1 parent 8d68e96 commit 8cb4fc9
Show file tree
Hide file tree
Showing 11 changed files with 1,299 additions and 204 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ updated by many others.
* Perry Huang <perryh>
* Joseph Bruggeman <jbruggeman>
* Badman74 <badman74>
* djm34 <djm4>

...and many others. See:

Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ sgminer_SOURCES += algorithm/whirlcoin.c algorithm/whirlcoin.h
sgminer_SOURCES += algorithm/neoscrypt.c algorithm/neoscrypt.h
sgminer_SOURCES += algorithm/whirlpoolx.c algorithm/whirlpoolx.h
sgminer_SOURCES += algorithm/lyra2re.c algorithm/lyra2re.h algorithm/lyra2.c algorithm/lyra2.h algorithm/sponge.c algorithm/sponge.h
sgminer_SOURCES += algorithm/pluck.c algorithm/pluck.h

bin_SCRIPTS = $(top_srcdir)/kernel/*.cl

289 changes: 157 additions & 132 deletions algorithm.c

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ typedef enum {
ALGO_FRESH,
ALGO_WHIRL,
ALGO_NEOSCRYPT,
ALGO_LYRA2RE
ALGO_LYRA2RE,
ALGO_PLUCK
} algorithm_type_t;

extern const char *algorithm_type_str[];
Expand Down Expand Up @@ -59,10 +60,10 @@ typedef struct _algorithm_t {
size_t n_extra_kernels;
long rw_buffer_size;
cl_command_queue_properties cq_properties;
void (*regenhash)(struct work *);
cl_int (*queue_kernel)(struct __clState *, struct _dev_blk_ctx *, cl_uint);
void (*gen_hash)(const unsigned char *, unsigned int, unsigned char *);
void (*set_compile_options)(struct _build_kernel_data *, struct cgpu_info *, struct _algorithm_t *);
void(*regenhash)(struct work *);
cl_int(*queue_kernel)(struct __clState *, struct _dev_blk_ctx *, cl_uint);
void(*gen_hash)(const unsigned char *, unsigned int, unsigned char *);
void(*set_compile_options)(struct _build_kernel_data *, struct cgpu_info *, struct _algorithm_t *);
} algorithm_t;

/* Set default parameters based on name. */
Expand Down
Loading

0 comments on commit 8cb4fc9

Please sign in to comment.