diff --git a/libethash-cuda/CMakeLists.txt b/libethash-cuda/CMakeLists.txt index 7e11d97fe..7a3f8b753 100644 --- a/libethash-cuda/CMakeLists.txt +++ b/libethash-cuda/CMakeLists.txt @@ -25,5 +25,4 @@ CUDA_ADD_LIBRARY(${EXECUTABLE} STATIC ${SRC_LIST} ${HEADERS}) TARGET_LINK_LIBRARIES(${EXECUTABLE} ${CUDA_LIBRARIES} ethash) install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) -install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) - +install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) \ No newline at end of file diff --git a/libethash-cuda/dagger_shuffled.cuh b/libethash-cuda/dagger_shuffled.cuh index 479b7f7e4..36275c4e4 100644 --- a/libethash-cuda/dagger_shuffled.cuh +++ b/libethash-cuda/dagger_shuffled.cuh @@ -32,7 +32,7 @@ __device__ uint64_t compute_hash_shuffle( uint4 mix; uint2 shuffle[8]; - + for (int i = 0; i < THREADS_PER_HASH; i++) { // share init among threads diff --git a/libethash-cuda/keccak.cuh b/libethash-cuda/keccak.cuh index 2b0187303..c98d89699 100644 --- a/libethash-cuda/keccak.cuh +++ b/libethash-cuda/keccak.cuh @@ -41,9 +41,7 @@ uint2 chi(const uint2 a, const uint2 b, const uint2 c) { asm("lop3.b32 %0, %1, %2, %3, 0xd2;" : "=r"(result.y) : "r"(a.y), "r"(b.y), "r"(c.y)); return result; } - #else - __device__ __forceinline__ uint2 chi(const uint2 a, const uint2 b, const uint2 c) { return a ^ (~b) & c;