Diablo-D3 / DiabloMiner

OpenCL miner for Bitcoin
https://bitcointalk.org/index.php?topic=1721.0
GNU General Public License v3.0
538 stars 217 forks source link

OSX Error -56 #48

Closed widd closed 11 years ago

widd commented 11 years ago

I can start up the miner and accept a few blocks (about 3-5) before receiving this error and having to restart it.

[12/6/12 7:10:54 PM] ERROR: Failed to queue kernel, error -56

Diablo-D3 commented 11 years ago

What version of OSX? Because it sounds like you're on one that doesn't support OpenCL 1.1

widd commented 11 years ago

OSX Lion 10.7.5

Diablo-D3 commented 11 years ago

Very strange. What command line args?

widd commented 11 years ago

mining pool host, user, port, and work size (-w 64)

Diablo-D3 commented 11 years ago

Very strange. Does it happen immediately? Which GPU?

widd commented 11 years ago

It happens after about 5 minutes or so.

ATI Radeon HD 6750M

Diablo-D3 commented 11 years ago

-56 is CL_INVALID_GLOBAL_OFFSET.. The only time you see this usually is if you try to use an offset with clEnqueueNDRangeKernel on OpenCL 1.0 (which is why OpenCL 1.0 is no longer supported by DiabloMiner). 10.7 clearly is 1.1.

The only other way for -56 to be returned is if the offset is bigger than 4.2 billion, which I'm pretty sure isn't happening here because this would have been reported by other users (on OSX or any other OS).

I'll have to look into this.

widd commented 11 years ago

For the time being I've setup a small php script that kills and restarts the miner every 60 seconds (about how long it lasts on average before throwing error -56). It'd be nice to have a fix soon, but for now it is not a problem.

Diablo-D3 commented 11 years ago

Okay, apparently #48 isn't fixed yet, according to FrederickGeek8