Windows compilation support.

This commit is contained in:
Haifa Bogdan Adnan 2019-08-27 11:32:23 +03:00
parent 3c856e9aae
commit 42216bbb55
14 changed files with 1817 additions and 14 deletions

View file

@ -292,7 +292,7 @@ bool CudaHasher::buildThreadData() {
}
#else
thread_data.threadsIdx = 0;
thread_data.threads = device->profile_info.threads;
thread_data.threads = device->profileInfo.threads;
#endif
thread_data.argon2 = new Argon2(cuda_kernel_prehasher, cuda_kernel_filler, cuda_kernel_posthasher,

View file

@ -888,7 +888,7 @@ void cuda_allocate(CudaDeviceInfo *device, double chunks, size_t chunk_size) {
#ifdef PARALLEL_CUDA
int threads = device->profileInfo.threads / 2;
#else
int threads = device->profile_info.threads;
int threads = device->profileInfo.threads;
#endif
size_t preseed_memory_size = profile->pwdLen * 4;