Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer problems with cgminer on 32bit systems #7

Open
ghost opened this issue Oct 24, 2014 · 5 comments
Open

buffer problems with cgminer on 32bit systems #7

ghost opened this issue Oct 24, 2014 · 5 comments
Assignees

Comments

@ghost
Copy link

ghost commented Oct 24, 2014

See

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

as a starting point for a more general solution.

@vehre vehre self-assigned this Oct 27, 2014
@vehre
Copy link
Owner

vehre commented Oct 27, 2014

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
Copy link

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

@vehre
Copy link
Owner

vehre commented Oct 27, 2014

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

@vehre
Copy link
Owner

vehre commented Oct 27, 2014

Please try 3.7.7c on the 32bit system.

@aspirez4
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants