vanitygen icon indicating copy to clipboard operation
vanitygen copied to clipboard

oclvanitygen / miner broken in Catalyst 13

Open shadowmite opened this issue 12 years ago • 65 comments

I'm new to this and might be missing something but I can't get this to compile the kernel and run from Windows or Ubuntu Linux with my MSI R7970 (Tahiti) GPU running Catalyst 13 drivers. I can try to downgrade this weekend but I believe this is a real issue due to changes in their OpenCL?

C:\Users\shadowmite\Desktop\guiminer\vanitygen-0.22-win>oclvanitygen.exe -d 0 1Test123 Difficulty: 51529903411245 Compiling kernel, can take minutes...LLVM ERROR: Cannot select: 0x4953460: i8 = setcc 0x494b288, 0x4953c58, 0x494af58 [ID=80] 0x494b288: i32 = AMDILISD::ADD 0x4953c58, 0x4953928 [ID=63] 0x4953c58: i32,ch = CopyFromReg 0x49fd2e8, 0x4953ac0 [ORD=179] [ID=51] 0x4953ac0: i32 = Register %vreg40 [ORD=179] [ID=14] 0x4953928: i32,ch = load 0x49fd2e8, 0x4953bd0, 0x4941568<LD4[getelementptr i nbounds ([8 x i32] addrspace(2)* @modulus, i32 0, i32 7)]> [ORD=178] [ID=55] 0x4953bd0: i32 = Constant<28> [ID=39] 0x4941568: i32 = undef [ORD=150] [ID=2] 0x4953c58: i32,ch = CopyFromReg 0x49fd2e8, 0x4953ac0 [ORD=179] [ID=51] 0x4953ac0: i32 = Register %vreg40 [ORD=179] [ID=14]

C:\Users\shadowmite\Desktop\guiminer\vanitygen-0.22-win>

Same basic error in linux.

shadowmite avatar Jan 24 '13 00:01 shadowmite

I see at the forums others are all having the same issue with Catalyst 13, it's broke. :(

shadowmite avatar Jan 31 '13 04:01 shadowmite

Same problem with catalyst 13.2 beta on archlinux 64bit :-(

tuxayo avatar Feb 11 '13 23:02 tuxayo

Broke on windows aswell

wartron avatar Feb 15 '13 03:02 wartron

+1 :(

nullEuro avatar Feb 16 '13 23:02 nullEuro

Yup :(

julfo avatar Feb 18 '13 17:02 julfo

From a little bit of research on this error I found:


"The type of the pointee must be an integer type whose bit width is a power of two greater than or equal to eight and less than or equal to a target-specific size limit"

I did atomic store/loads without conversion and this lead to the LLVM ERROR that I originally posted. Issuing a bitcast after the load and before the store resolved it.


I'm not familiar with GPU / OpenCL programming so it would be great if someone else can make the required fix but if not I'll slowly figure it out, gotta learn this someday.

shadowmite avatar Feb 18 '13 18:02 shadowmite

After doing some more researches I think it is a bug on AMDs side because the clBuildProgram function does not return an errorcode but simply crashes. Maybe there is a workaround but i think we will have to wait for AMD to release a fix (there might be a bug in the oclvanitygen code that provokes the crash and has to be fixed too).

Bug reports on AMD Dev Forums: http://devgurus.amd.com/message/1286923 (new) http://devgurus.amd.com/message/1285326 (older)

btw: Does it still occur with newest AMD Beta drivers? Has someone tested this?

nullEuro avatar Feb 19 '13 17:02 nullEuro

I just tested with beta 6 and it fails the same way :-(

tuxayo avatar Feb 19 '13 23:02 tuxayo

Can't wait for this to be fixed.

Anenome avatar Mar 18 '13 11:03 Anenome

Update: Still broken with Catalyst 13.3 Beta 3

jacky4566 avatar Mar 21 '13 02:03 jacky4566

With my ATI Radeon HD 5570, Catalyst 13.1 and Catalyst 11.11 failed. (I tried Catalyst 11.11 based on other forum recommendations.) It did work with Catalyst 12.10.

lifeboat avatar Mar 31 '13 10:03 lifeboat

Also note that I was considering getting an NVIDIA card as a solution to this problem but didn't due to https://en.bitcoin.it/wiki/Why_a_GPU_mines_faster_than_a_CPU#Why_are_AMD_GPUs_faster_than_Nvidia_GPUs.3F

lifeboat avatar Mar 31 '13 10:03 lifeboat

@lifeboat I can't get it to work using Catalyst 12.10 (on arch linux).

clarkminor avatar Apr 07 '13 01:04 clarkminor

"@lifeboat I can't get it to work using Catalyst 12.10 (on arch linux)."

I am using Windows 7.

lifeboat avatar Apr 07 '13 07:04 lifeboat

I used the AMD cleanup utility when I was on 13.2 beta5 to remove the drivers and installed 13.1 as I was getting the error as well, BUT I keep getting even now on 13.1.

So Catalyst 13 must be broken :(

dikidera avatar Apr 07 '13 14:04 dikidera

@lifeboat I un-installed my old catalyst version and installed 12.10 but it doesn't appear to be working. I'm on Windows 7.

DougTanner avatar Apr 14 '13 22:04 DougTanner

Downgrading is not as easy as upgrading.

Here is a quote for a way to do it:

"restart the PC, load on safe mode, use driver sweeper and uninstall the graphic driver (it supports either ATI or Nvidia) and then load onto windows and install the new driver. this is the universal method !"

You can find Driver Sweeper at http://www.guru3d.com/content_page/guru3d_driver_sweeper.html

Here is a batch file you can also try:

cd C:\Windows\System32 del SlotMaximizerAg.dll del SlotMaximizerBe.dll del amdocl64.dll del OpenCL.dll del OpenVideo64.dll del OVDecode64.dll

cd C:\Windows\SysWOW64 del SlotMaximizerAg.dll del SlotMaximizerBe.dll del amdocl.dll del OpenCL.dll del OpenVideo.dll del OVDecode.dll

rmdir C:\ProgramData\AMD\KDB /S /Q

That batch file is from http://forums.guru3d.com/showthread.php?t=359883

lifeboat avatar Apr 15 '13 14:04 lifeboat

Thanks! I eventually got it to work with 11.11 and a whole bunch of cleans/reboots (12.10 didn't). I think the trick was to also un-install and manually clean the APP SDK.

(I have a Radeon 5850 on Windows 7 64-bit)

DougTanner avatar Apr 16 '13 00:04 DougTanner

@clarkminor Try Catalyst 11.11, it works for some people.

lifeboat avatar Apr 17 '13 18:04 lifeboat

@DougTanner What are the folders you cleaned manually for the APP SDK ?

tuxayo avatar Apr 20 '13 14:04 tuxayo

I finally ran oclvanitygen long enough on my Sapphire Radeon HD 7950 3GB DDR5 HDMI / DVI-I / Dual Mini DP with Boost PCI-Express Graphics Card long enough to get a result for 1Lifeboat, unfortunately the program gave the error:

Match idx: 1 CPU hash: 09e91e4c4c3476ef963879a2230ef66cabe0c3f3 GPU hash: d84bb4cee4339681cee94dbd0dad5a7326bc13fd Found delta: 576297 Start delta: 58720257

I looked into this and this means the CPU and GPU results differ so you just get this error and the program continues to search for a result. Further testing showed that oclvanitygen failed like this pretty consistently for smaller tests such as searching for 1Li (there was an occasional success when I did tests on 1L just to drive me crazy).

Further research showed that my VisionTek Radeon 7850 2GB DDR5 PCI Express Graphics Card failed in the same way. Additional research showed that the 2GB DDR3 ATI Radeon HD 5570 that came with my computer does not fail. (I thought that had worked.)

It is pretty doubtful that my other two cards are defective in any way as my testing shows that oclvanitygen is pretty cranky. (I could go on and on as to all my test results.)

Ideas?

lifeboat avatar Apr 20 '13 17:04 lifeboat

Using the -S option solves the problem but then oclvanitygen runs pretty slow.

lifeboat avatar Apr 20 '13 19:04 lifeboat

Note that with the -S option trying to find 1L usually fails, but anything longer, even 1Lifebo works with no problem.

lifeboat avatar Apr 20 '13 19:04 lifeboat

I finally managed to run it on Linux Mint 13 64bits (Ubuntu 12.04 should also work(I dont know if 32 bit makes a difference)) -Starting with a fresh and updated install I added proprietary drivers (the stable version: fglrx)

-Then I installed the required packages to build : opencl-headers libssl-dev libpcre++-dev

-Then lauching "make oclvanitygen" worked flawlessly

Now I'm computing at 15Mkey/s with a AMD HD5770

tuxayo avatar Apr 22 '13 13:04 tuxayo

"Now I'm computing at 15Mkey/s with a AMD HD5770"

Have you tested it with something short like 1Life to make sure it is actually working?

lifeboat avatar Apr 22 '13 23:04 lifeboat

I generated 1youLoStLAFTyy6jcijLR8pqdjDzLTYz3 And it works :-D http://blockchain.info/address/1youLoStLAFTyy6jcijLR8pqdjDzLTYz3

tuxayo avatar Apr 22 '13 23:04 tuxayo

"I generated 1youLoStLAFTyy6jcijLR8pqdjDzLTYz3 :-D"

Impressive. Are you also on LinkedIn or is your bio available anywhere?

lifeboat avatar Apr 22 '13 23:04 lifeboat

@lifeboat No I haven’t yet a LinkedIn account nor a bio, why?

tuxayo avatar Apr 22 '13 23:04 tuxayo

"No I haven’t yet a LinkedIn account nor a bio, why?"

We are always looking for potential board members at the Lifeboat Foundation.

lifeboat avatar Apr 23 '13 00:04 lifeboat

As an alternative to AMD parts and drivers, I would be curious what type of results people are getting with say the GeForce GTX670.

lifeboat avatar May 02 '13 05:05 lifeboat