Skip to content

Commit

Permalink
v3.9.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDDee committed Jun 5, 2019
1 parent 0a3c528 commit 1b0a5aa
Show file tree
Hide file tree
Showing 14 changed files with 419 additions and 148 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ cpuminer_SOURCES = \
algo/sha/sph_sha2.c \
algo/sha/sph_sha2big.c \
algo/sha/sha2-hash-4way.c \
algo/sha/sha256_hash_11way.c \
algo/sha/sha2.c \
algo/sha/sha256t-gate.c \
algo/sha/sha256t-4way.c \
Expand Down
8 changes: 7 additions & 1 deletion RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ supported.
Change Log
----------

v3.9.2.1
v3.9.2.3

Another cpu-affinity fix.
Disabled test code that fails to compile on some CPUs with limited
AVX512 capabilities.

v3.9.2.2

Fixed some day one cpu-affinity issues.

Expand Down
24 changes: 21 additions & 3 deletions algo-gate-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ const char* const algo_alias_map[][2] =
{ NULL, NULL }
};

// if arg is a valid alias for a known algo it is updated with the proper name.
// No validation of the algo or alias is done, It is the responsinility of the
// calling function to validate the algo after return.
// if arg is a valid alias for a known algo it is updated with the proper
// name. No validation of the algo or alias is done, It is the responsinility
// of the calling function to validate the algo after return.
void get_algo_alias( char** algo_or_alias )
{
int i;
Expand All @@ -362,3 +362,21 @@ void get_algo_alias( char** algo_or_alias )

#undef ALIAS
#undef PROPER

bool submit_solution( struct work *work, void *hash,
struct thr_info *thr, int lane )
{
work_set_target_ratio( work, hash );
if ( submit_work( thr, work ) )
{
applog( LOG_NOTICE, "Share %d submitted by thread %d, lane %d.",
accepted_share_count + rejected_share_count + 1,
thr->id, lane );
return true;
}
else
applog( LOG_WARNING, "Failed to submit share." );
return false;
}


5 changes: 3 additions & 2 deletions algo-gate-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ void four_way_not_tested();
int null_scanhash();

// The one and only, a callback for scanhash.


bool submit_solution( struct work *work, void *hash,
struct thr_info *thr, int lane );

bool submit_work( struct thr_info *thr, const struct work *work_in );

// displays warning
Expand Down
11 changes: 5 additions & 6 deletions algo/sha/sha2-hash-4way.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ typedef struct {
} sha256_11way_context;

void sha256_11way_init( sha256_11way_context *ctx );
void sha256_11way( sha256_11way_context *ctx, const void *datax,
void *datay, void *dataz, size_t len );
void sha256_11way_update( sha256_11way_context *ctx, const void *datax,
const void *datay, const void *dataz, size_t len );
void sha256_11way_close( sha256_11way_context *ctx, void *dstx, void *dstyx,
void *dstz );


#endif
#endif
#endif
#endif // __AVX2__
#endif // __SSE2__
#endif // SHA256_4WAY_H__
Loading

0 comments on commit 1b0a5aa

Please sign in to comment.