vehre / neo-gpuminer

GPUminer for neoscrypt based coins like feathercoin, phoenixcoin,...
Other
6 stars 16 forks source link

buffer problems with cgminer on 32bit systems #7

Open ghost opened 10 years ago

ghost commented 10 years ago

See

https://forum.feathercoin.com/index.php?/topic/7934-error-61-clcreatebuffer-padbuffer8/

as a starting point for a more general solution.

vehre commented 10 years ago

Please try this patch:

diff --git a/ocl.c b/ocl.c index aceeb99..df76ec5 100644 --- a/ocl.c +++ b/ocl.c @@ -577,9 +577,9 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) #ifdef USE_NEOSCRYPT if(opt_neoscrypt){ cgpu->max_intensity = cgpu->dynamic? MAX_INTENSITY: cgpu->intensity; - size_t glob_thread_count = 1U<< cgpu->max_intensity; - size_t glob_thread_count = 1UL<< cgpu->max_intensity; cgpu->thread_concurrency = (glob_thread_count< cgpu->work_size ? cgpu->work_size: glob_thread_count); - if(cgpu->max_alloc< cgpu->thread_concurrency\* NEOSCRYPT_SCRATCHBUF_SIZE) { - if((uint64_t)cgpu->max_alloc< (uint64_t)cgpu->thread_concurrency\* NEOSCRYPT_SCRATCHBUF_SIZE) { /\* Selected intensity will not run on this GPU. Not enough memory. \* Adapt the memory setting. */ glob_thread_count= cgpu->max_alloc/ NEOSCRYPT_SCRATCHBUF_SIZE;

by storing it to a file patch.txt and applying it using:

patch -p 0 <patch.txt

aspirez4 commented 10 years ago

This patch is working for me. I'm using Win 7 64 bit, with 13.12 AMD drivers. R9 270x.

vehre commented 10 years ago

So you compiled the patch for 32 bit and checked it on a 64 bit system? What is the use of that?

vehre commented 10 years ago

Please try 3.7.7c on the 32bit system.

aspirez4 commented 10 years ago

I tried all of the precompiled binaries for windows in the "Public Beta Test" thread. With all of them i get "error-61". I compiled the source with MinGW before the commits from today and the problem still appears. After modifying the ocl.c as you suggest and rebuild the source everything is working fine for ~4 hours. I am getting 42-44 KH/s per card / R9 270/. I'm sure that my OS is Win 7 64 bit.