Skip to content

Commit

Permalink
Possible fix for segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
omaralvarez committed Oct 25, 2016
1 parent a7d582d commit aa33f14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/libzogminer/cl_zogminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ void cl_zogminer::run(crypto_generichash_blake2b_state base_state, uint32_t * so
m_queue.enqueueReadBuffer(m_dst_solutions, true, 0, 10*NUM_INDICES*sizeof(uint32_t), dst_solutions);
m_queue.enqueueReadBuffer(m_n_solutions, true, 0, sizeof(uint32_t), solutions);

m_queue.finish();

for(i = 0; i < *solutions; ++i) {
normalize_indices(dst_solutions + (NUM_INDICES*i));
}
Expand Down
2 changes: 1 addition & 1 deletion src/libzogminer/gpusolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "gpusolver.h"

#define DEBUG
//#define DEBUG

GPUSolver::GPUSolver() {

Expand Down

0 comments on commit aa33f14

Please sign in to comment.