Pages:
Author

Topic: Vanitygen: Vanity bitcoin address generator/miner [v0.22] - page 60. (Read 1153383 times)

copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
I wonder if you guys are just using different versions of the software.  Perhaps the filtering was added recently?


I'm using oclvanitygen64 and there doesn't appear to be a

Code:
-r

switch.

Yep, the GPU version cant do regex. Not sure why. Try

Code:
vanitygen64 -r test
legendary
Activity: 3696
Merit: 2219
💲🏎️💨🚓
I wonder if you guys are just using different versions of the software.  Perhaps the filtering was added recently?


I'm using oclvanitygen64 and there doesn't appear to be a

Code:
-r

switch.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
I wonder if you guys are just using different versions of the software.  Perhaps the filtering was added recently?

Make sure the expression is valid for a bitcoin address. You can search for [O0l] without ever finding a result.

That would actually be a good improvement for vanitygen, to do a validation step to ensure that what's being looked for actually could match a bitcoin address.  I haven't thought about the completeness of the problem but at the very least you could (as you point out) rule out any expressions which explicitly look for [O0I].  I don't think I have the code checked out at the moment or I'd consider submitting a pull request myself.

It does:

Quote
Invalid Character 'I' in prefix '1BIG'

I guess it depends on what you actually entered as neiter "small ell" not "big eye" are filtered for me. Are you using -r?

Code:
$ ./vanitygen -r '1BlG'
[154.22 Kkey/s][total 4432640]                              

./vanitygen -r 1BIG
[159.72 Kkey/s][total 2447104]                                                                    

./vanitygen -r 1BiG
Pattern: 1BiG                                                                 
Address: 1BiGFYAr4xegoTRbLfnTKHC9tAdfFgddYA
Privkey: 5J4BeUWY3qjVzMzQc49JGMQrpLDUmyKjeA6eHDMcvuY2anKFxYY
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
you needed root to load the nvidia_uvm kernel module. with the nvidia-modprobe package installed, you can load the kernel module as user too or rather, it gets auto loaded.
I skipped this part of your previous comment since I got it working, but it sounds like an improvement.
When I google it, it simply says to `apt-get install nvidia-modprobe`, but it doesn't exist on my system. I now know it's something I should still fix, but for now I'm happy I can use it Cheesy
legendary
Activity: 1792
Merit: 1008
/dev/null
try to run the miner with sudo, as with a incorrect OpenCL setup, you'll need root to load the nvidia_uvm kernel module. Once loaded you dont need sudo again. Your missing that module, hence the failure.
This fixed it! Running once as root, compiling kernel, and now it runs as user too.
From 200-400 kkeys/s (depending on system load) to up to over 7.5 Mkeys/s! Thank you so much!


Code:
Difficulty: 264104224
Compiling kernel, can take minutes...done!
Pattern: 1test                                                                
Address: 1testvSQ7NjT2bjG3Ywv8GkCNCCQmUxcz
Privkey: 5HrhdHG7LzJG1k1teTKbGRhNqZzU9LxMsYTUxoNoTmUb7frNmDB

Now the search continues Smiley It's running at 79 degrees C now, and slowly going up, After cleaning it a bit it runs at 62 degrees C now.

Edit: on performance: the GeForce 840M reaches just over 9 Mkeys/s if I close my browsers to reduce CPU (or video?) load.
you needed root to load the nvidia_uvm kernel module. with the nvidia-modprobe package installed, you can load the kernel module as user too or rather, it gets auto loaded.

If you use the GUI, obviously there will be less computing power for the OpenCL stuff. Some browsers use hardware accelerating which hinders oclvanitygen even more.

Have fun with vanitygen Wink
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
try to run the miner with sudo, as with a incorrect OpenCL setup, you'll need root to load the nvidia_uvm kernel module. Once loaded you dont need sudo again. Your missing that module, hence the failure.
This fixed it! Running once as root, compiling kernel, and now it runs as user too.
From 200-400 kkeys/s (depending on system load) to up to over 7.5 Mkeys/s! Thank you so much, that's 25 times faster on average!


Code:
Difficulty: 264104224
Compiling kernel, can take minutes...done!
Pattern: 1test                                                                
Address: 1testvSQ7NjT2bjG3Ywv8GkCNCCQmUxcz
Privkey: 5HrhdHG7LzJG1k1teTKbGRhNqZzU9LxMsYTUxoNoTmUb7frNmDB

Now the search continues Smiley It's running at 79 degrees C now, and slowly going up, After cleaning it a bit it runs at 62 degrees C now.

Edit: on performance: the GeForce 840M reaches just over 9 Mkeys/s if I close my browsers to reduce CPU (or video?) load.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
Make sure the expression is valid for a bitcoin address. You can search for [O0l] without ever finding a result.

That would actually be a good improvement for vanitygen, to do a validation step to ensure that what's being looked for actually could match a bitcoin address.  I haven't thought about the completeness of the problem but at the very least you could (as you point out) rule out any expressions which explicitly look for [O0I].  I don't think I have the code checked out at the moment or I'd consider submitting a pull request myself.

It does:

Quote
Invalid Character 'I' in prefix '1BIG'

I guess it depends on what you actually entered as neiter "small ell" not "big eye" are filtered for me. Are you using -r?

Code:
$ ./vanitygen -r '1BlG'
[154.22 Kkey/s][total 4432640]                              

./vanitygen -r 1BIG
[159.72 Kkey/s][total 2447104]                                                                    

./vanitygen -r 1BiG
Pattern: 1BiG                                                                 
Address: 1BiGFYAr4xegoTRbLfnTKHC9tAdfFgddYA
Privkey: 5J4BeUWY3qjVzMzQc49JGMQrpLDUmyKjeA6eHDMcvuY2anKFxYY
legendary
Activity: 1792
Merit: 1008
/dev/null
not skipping was correct. You'r binary is compiled and ready to go. Now we need to fix the last issue:
Thanks Smiley Smiley

Quote
is the package nvidia-modprobe installed? if not, install it.
Seems like it:
Code:
# lsmod | grep -i nvidia
nvidia               8646656  33
drm                   344064  7 i915,drm_kms_helper,nvidia

Code:
# find / | grep modprobe | grep -i nvidia
/etc/modprobe.d/nvidia-graphics-drivers.conf
/etc/modprobe.d/nvidia-352_hybrid.conf
/lib/nvidia-352/modprobe.conf

The contents of these files:
Code:
Laptop / # cat /etc/modprobe.d/nvidia-graphics-drivers.conf
# This file was installed by nvidia-352
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-current
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current-updates
blacklist nvidia-173-updates
blacklist nvidia-96-updates
blacklist nvidia-352-updates
alias nvidia nvidia_352
alias nvidia-uvm nvidia_352-uvm
alias nouveau off
alias lbm-nouveau off

Laptop / # cat /etc/modprobe.d/nvidia-352_hybrid.conf
# This file was installed by nvidia-352
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

Laptop / # cat /lib/nvidia-352/modprobe.conf
# This file was installed by nvidia-352
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-current
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current-updates
blacklist nvidia-173-updates
blacklist nvidia-96-updates
blacklist nvidia-352-updates
alias nvidia nvidia_352
alias nvidia-uvm nvidia_352-uvm
alias nouveau off
alias lbm-nouveau off
I don't know iff the blacklists are relevant.


I am running the Nvidia-driver:


Judging by this I would say my X-server knows the card:


And this is what I have installed:


Quote
check if this file exists:
Code:
$ ls -al /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1

does this exist too?
Code:
$ ls -al /etc/OpenCL/vendors/nvidia.icd

if not:
Code:
$ sudo mkdir -p /etc/OpenCL/vendors
$ sudo tee /etc/OpenCL/vendors/nvidia.icd <<< 'libnvidia-opencl.so.1'
I think this is all okay:
Code:
Laptop ~ # ls -al /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
lrwxrwxrwx 1 root root 26 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1 -> libnvidia-opencl.so.352.63
Laptop ~ # ls -alL /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
-rw-r--r-- 1 root root 15901968 Nov  8 06:08 /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
Laptop ~ # ls -al /etc/OpenCL/vendors/nvidia.icd
-rw-r--r-- 1 root root 22 Nov  8 05:08 /etc/OpenCL/vendors/nvidia.icd
Laptop ~ # cat /etc/OpenCL/vendors/nvidia.icd
libnvidia-opencl.so.1

Anything else I can do/try? It's probably something really simple once you know it Cheesy
install the nvidia-modprobe package.

try to run the miner with sudo, as with a incorrect OpenCL setup, you'll need root to load the nvidia_uvm kernel module. Once loaded you dont need sudo again. Your missing that module, hence the failure.
legendary
Activity: 3696
Merit: 2219
💲🏎️💨🚓
Make sure the expression is valid for a bitcoin address. You can search for [O0l] without ever finding a result.

That would actually be a good improvement for vanitygen, to do a validation step to ensure that what's being looked for actually could match a bitcoin address.  I haven't thought about the completeness of the problem but at the very least you could (as you point out) rule out any expressions which explicitly look for [O0I].  I don't think I have the code checked out at the moment or I'd consider submitting a pull request myself.

It does:

Quote
Invalid Character 'I' in prefix '1BIG'
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Make sure the expression is valid for a bitcoin address. You can search for [O0l] without ever finding a result.

That would actually be a good improvement for vanitygen, to do a validation step to ensure that what's being looked for actually could match a bitcoin address.  I haven't thought about the completeness of the problem but at the very least you could (as you point out) rule out any expressions which explicitly look for [O0I].  I don't think I have the code checked out at the moment or I'd consider submitting a pull request myself.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
All the vanity addresses are like : 1NAMExxxxxxxxxxxxxxxx

Is there a way that we can generate addresses which end in the desired way ?

For example : 1xxxxxxxxxxxxxNAME

If it is possible then whats the command line for windows?

-snip-

Code:
>vanitygen64.exe -r [Aa]{2}1{2}$
Pattern: [Aa]{2}1{2}$
Address: 19VJ8Pmd5MB4EFJ2ovYX8nurgWiDeAA11
Privkey: 5KWwwpWcKhKcJPgePWCzeM6XKr3cZsTDTuRXiPQCM9HR1b6AaY2

Pattern: [Aa]{2}1{2}$
Address: 1QAkUcikHoeAGgzeg21BMFx627mfntAa11
Privkey: 5KiP18jvZotGWnPWRwXda9TJgKyzhQi48evVv7wMgX4144rcnrq
I didn't understand the last one. Can you explain what do characters inside the brackets indicate ?

[Aa] = A or a
{2} two symbols, so here it can be AA, Aa, aA or aa
1{2} means two ones.
$ must end with

so in total the possible results are all addresses that end on one of the following strings

AA11
Aa11
aA11
aa11

You could also do [0-9]{6,8}$ which would be 6, 7 or 8 numbers at the end, e.g.

Code:
Pattern: [0-9]{6,8}$
Address: 1QFjZXE28vaDN3NJdWpfY2GtKH9M279652
Address: 1Q54GaNGcAK2xAGuBteMyfaPyTtE884619
Address: 1PXZrNFjVefRAedPniRGKjMdAFpa933155
Address: 1Pcgz7SrtQn5bU4Kds6xZCDMyZGb393457
Address: 16czd5MXWW6JaojATnesJy2CjcpF818713
Address: 19yxjCfjwCJNfXjT5kkHoF6x7h5R876332
Address: 19EM7rjZqLnxHdooCCzfE6zEwhuX536624

More about regex, e.g. here -> http://www.rexegg.com/regex-quickstart.html

Make sure the expression is valid for a bitcoin address. You can search for [O0l] without ever finding a result.
hero member
Activity: 1162
Merit: 547
CryptoTalk.Org - Get Paid for every Post!
All the vanity addresses are like : 1NAMExxxxxxxxxxxxxxxx

Is there a way that we can generate addresses which end in the desired way ?

For example : 1xxxxxxxxxxxxxNAME

If it is possible then whats the command line for windows?

-snip-

Code:
>vanitygen64.exe -r [Aa]{2}1{2}$
Pattern: [Aa]{2}1{2}$
Address: 19VJ8Pmd5MB4EFJ2ovYX8nurgWiDeAA11
Privkey: 5KWwwpWcKhKcJPgePWCzeM6XKr3cZsTDTuRXiPQCM9HR1b6AaY2

Pattern: [Aa]{2}1{2}$
Address: 1QAkUcikHoeAGgzeg21BMFx627mfntAa11
Privkey: 5KiP18jvZotGWnPWRwXda9TJgKyzhQi48evVv7wMgX4144rcnrq
I didn't understand the last one. Can you explain what do characters inside the brackets indicate ?
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
All the vanity addresses are like : 1NAMExxxxxxxxxxxxxxxx

Is there a way that we can generate addresses which end in the desired way ?

For example : 1xxxxxxxxxxxxxNAME

If it is possible then whats the command line for windows?

If you dont use a GPU you can search for regex, the $ symbol means "at the end". Dont use the keys (obviously).

Code:
>vanitygen64.exe -r NAME$
Pattern: NAME$
Address: 1Lo79wpQy3QVZePzEaL818F1uhXLC2NAME
Privkey: 5JdvX473jNfr2LaYxsETj91E8aC1eiy17xAWkSTZ9g5om1dNLby

anywhere also works (and is obviously easier):

Code:
>vanitygen64.exe -r NAME
Pattern: NAME
Address: 1EpHNAMEFohF8UF9pmuGSLdNtSyc41CkEn
Privkey: 5J5fDUtVSiAwofjxpRcSKikhZzLjSSWbiE9kcPVyM4Lhhx7HrW6

You can also use more complex patterns.

Code:
>vanitygen64.exe -r [Aa]{2}1{2}$
Pattern: [Aa]{2}1{2}$
Address: 19VJ8Pmd5MB4EFJ2ovYX8nurgWiDeAA11
Privkey: 5KWwwpWcKhKcJPgePWCzeM6XKr3cZsTDTuRXiPQCM9HR1b6AaY2

Pattern: [Aa]{2}1{2}$
Address: 1QAkUcikHoeAGgzeg21BMFx627mfntAa11
Privkey: 5KiP18jvZotGWnPWRwXda9TJgKyzhQi48evVv7wMgX4144rcnrq
hero member
Activity: 1162
Merit: 547
CryptoTalk.Org - Get Paid for every Post!
All the vanity addresses are like : 1NAMExxxxxxxxxxxxxxxx

Is there a way that we can generate addresses which end in the desired way ?

For example : 1xxxxxxxxxxxxxNAME

If it is possible then whats the command line for windows?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
not skipping was correct. You'r binary is compiled and ready to go. Now we need to fix the last issue:
Thanks Smiley Smiley

Quote
is the package nvidia-modprobe installed? if not, install it.
Seems like it:
Code:
# lsmod | grep -i nvidia
nvidia               8646656  33
drm                   344064  7 i915,drm_kms_helper,nvidia

Code:
# find / | grep modprobe | grep -i nvidia
/etc/modprobe.d/nvidia-graphics-drivers.conf
/etc/modprobe.d/nvidia-352_hybrid.conf
/lib/nvidia-352/modprobe.conf

The contents of these files:
Code:
Laptop / # cat /etc/modprobe.d/nvidia-graphics-drivers.conf
# This file was installed by nvidia-352
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-current
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current-updates
blacklist nvidia-173-updates
blacklist nvidia-96-updates
blacklist nvidia-352-updates
alias nvidia nvidia_352
alias nvidia-uvm nvidia_352-uvm
alias nouveau off
alias lbm-nouveau off

Laptop / # cat /etc/modprobe.d/nvidia-352_hybrid.conf
# This file was installed by nvidia-352
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

Laptop / # cat /lib/nvidia-352/modprobe.conf
# This file was installed by nvidia-352
# Do not edit this file manually

blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-current
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current-updates
blacklist nvidia-173-updates
blacklist nvidia-96-updates
blacklist nvidia-352-updates
alias nvidia nvidia_352
alias nvidia-uvm nvidia_352-uvm
alias nouveau off
alias lbm-nouveau off
I don't know iff the blacklists are relevant.


I am running the Nvidia-driver:


Judging by this I would say my X-server knows the card:


And this is what I have installed:


Quote
check if this file exists:
Code:
$ ls -al /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1

does this exist too?
Code:
$ ls -al /etc/OpenCL/vendors/nvidia.icd

if not:
Code:
$ sudo mkdir -p /etc/OpenCL/vendors
$ sudo tee /etc/OpenCL/vendors/nvidia.icd <<< 'libnvidia-opencl.so.1'
I think this is all okay:
Code:
Laptop ~ # ls -al /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
lrwxrwxrwx 1 root root 26 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1 -> libnvidia-opencl.so.352.63
Laptop ~ # ls -alL /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
-rw-r--r-- 1 root root 15901968 Nov  8 06:08 /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
Laptop ~ # ls -al /etc/OpenCL/vendors/nvidia.icd
-rw-r--r-- 1 root root 22 Nov  8 05:08 /etc/OpenCL/vendors/nvidia.icd
Laptop ~ # cat /etc/OpenCL/vendors/nvidia.icd
libnvidia-opencl.so.1

Anything else I can do/try? It's probably something really simple once you know it Cheesy
legendary
Activity: 1792
Merit: 1008
/dev/null
$ find /usr -name libOpenCL.so
Code:
/usr/lib64/OpenCL/vendors/intel/libOpenCL.so

Or more complete:
Code:
ls -l `find / | grep -i ibopencl.so`
-rw-r--r-- 1 root root 35200 Mar 15  2014 /usr/lib64/OpenCL/vendors/intel/libOpenCL.so
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 25148 Nov  8 06:10 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 26432 Nov  8 06:09 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0

I've been searching in this direction before, but didn't manage to fix it then.
$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so

I now get this:
Code:
test@Laptop:~/vanitygen-master$ make clean
rm -f vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o vanitygen keyconv oclvanitygen oclvanityminer
test@Laptop:~/vanitygen-master$ make
cc -ggdb -O3 -Wall   -c -o vanitygen.o vanitygen.c
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o keyconv.o keyconv.c
cc keyconv.o util.o -o keyconv -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
So far so good!

Code:
test@Laptop:~/vanitygen-master$ make oclvanitygen
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
cc -ggdb -O3 -Wall   -c -o oclengine.o oclengine.c
oclengine.c: In function ‘vg_ocl_prefix_check’:
oclengine.c:1553:18: warning: variable ‘tablesize’ set but not used [-Wunused-but-set-variable]
  int orig_delta, tablesize;
                  ^
cc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make: *** [oclvanitygen] Error 1
Errors! If I do make oclvanitygen first, the next command does not give errors:
Code:
test@Laptop:~/vanitygen-master$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
But after this it still can't find the OpenCL platforms:
Code:
test@Laptop:~/vanitygen-master$ ./oclvanitygen 1test
Difficulty: 264104224
clGetPlatformIDs(0): Unknown code -1001
clGetPlatformIDs(0): Unknown code -1001
Available OpenCL platforms:

If I skip the "make oclvanitygen", it gives this:
Code:
test@Laptop:~/vanitygen-master$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
gcc: error: oclvanitygen.o: No such file or directory
gcc: error: oclengine.o: No such file or directory

I'm hoping your guess is better than mine  Undecided
not skipping was correct. Your binary is compiled and ready to go. Now we need to fix the last issue:

is the package nvidia-modprobe installed? if not, install it.

check if this file exists:
Code:
$ ls -al /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1

does this exist too?
Code:
$ ls -al /etc/OpenCL/vendors/nvidia.icd

if not:
Code:
$ sudo mkdir -p /etc/OpenCL/vendors
$ sudo tee /etc/OpenCL/vendors/nvidia.icd <<< 'libnvidia-opencl.so.1'
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
$ find /usr -name libOpenCL.so
Code:
/usr/lib64/OpenCL/vendors/intel/libOpenCL.so

Or more complete:
Code:
ls -l `find / | grep -i ibopencl.so`
-rw-r--r-- 1 root root 35200 Mar 15  2014 /usr/lib64/OpenCL/vendors/intel/libOpenCL.so
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 25148 Nov  8 06:10 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 26432 Nov  8 06:09 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0

I've been searching in this direction before, but didn't manage to fix it then.
$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so

I now get this:
Code:
test@Laptop:~/vanitygen-master$ make clean
rm -f vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o vanitygen keyconv oclvanitygen oclvanityminer
test@Laptop:~/vanitygen-master$ make
cc -ggdb -O3 -Wall   -c -o vanitygen.o vanitygen.c
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o keyconv.o keyconv.c
cc keyconv.o util.o -o keyconv -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
So far so good!

Code:
test@Laptop:~/vanitygen-master$ make oclvanitygen
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
cc -ggdb -O3 -Wall   -c -o oclengine.o oclengine.c
oclengine.c: In function ‘vg_ocl_prefix_check’:
oclengine.c:1553:18: warning: variable ‘tablesize’ set but not used [-Wunused-but-set-variable]
  int orig_delta, tablesize;
                  ^
cc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make: *** [oclvanitygen] Error 1
Errors! If I do make oclvanitygen first, the next command does not give errors:
Code:
test@Laptop:~/vanitygen-master$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
But after this it still can't find the OpenCL platforms:
Code:
test@Laptop:~/vanitygen-master$ ./oclvanitygen 1test
Difficulty: 264104224
clGetPlatformIDs(0): Unknown code -1001
clGetPlatformIDs(0): Unknown code -1001
Available OpenCL platforms:

If I skip the "make oclvanitygen", it gives this:
Code:
test@Laptop:~/vanitygen-master$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
gcc: error: oclvanitygen.o: No such file or directory
gcc: error: oclengine.o: No such file or directory

I'm hoping your guess is better than mine  Undecided
legendary
Activity: 1792
Merit: 1008
/dev/null
$ find /usr -name libOpenCL.so
Code:
/usr/lib64/OpenCL/vendors/intel/libOpenCL.so

Or more complete:
Code:
ls -l `find / | grep -i ibopencl.so`
-rw-r--r-- 1 root root 35200 Mar 15  2014 /usr/lib64/OpenCL/vendors/intel/libOpenCL.so
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 25148 Nov  8 06:10 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 26432 Nov  8 06:09 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0

I've been searching in this direction before, but didn't manage to fix it then.
$ gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libOpenCL.so
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
$ find /usr -name libOpenCL.so
Code:
/usr/lib64/OpenCL/vendors/intel/libOpenCL.so

Or more complete:
Code:
ls -l `find / | grep -i ibopencl.so`
-rw-r--r-- 1 root root 35200 Mar 15  2014 /usr/lib64/OpenCL/vendors/intel/libOpenCL.so
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 25148 Nov  8 06:10 /usr/lib/i386-linux-gnu/libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root    16 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx 1 root root    18 Nov 16 20:51 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
-rw-r--r-- 1 root root 26432 Nov  8 06:09 /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0

I've been searching in this direction before, but didn't manage to fix it then.
legendary
Activity: 1792
Merit: 1008
/dev/null
Remove the Intel OpenCL this way, seems you installed this manually...:

$ sudo rm /etc/ld.so.conf.d/opencl-vendor-intel.conf
$ sudo ldconfig

after this, go to the vanitygen folder:
$ make clean && make
Done

Quote
$ rm *.oclbin

The second command removes the compiled OpenCL kernel for your GPU which dosnt work anyway, always remove it when changing drivers/rebuilding, otherwise you'll end up using an old OpenCL kernel.
I have no file ending on oclbin.


Now back to your first line:
Quote
You will have to install the packages i've told you. nvidia-libopencl1-352 should show "installed".
Installing nvidia-libopencl1-352 removes ocl-lcd-libopencl1.

After this:
Code:
# dpkg --get-selections | grep opencl
nvidia-libopencl1-352                           install
nvidia-opencl-icd-352                           install
ocl-icd-libopencl1:amd64                        deinstall
opencl-headers                                  install


Quote
Now, try again and post the results.
I now get this:
Code:
make oclvanitygen
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
cc -ggdb -O3 -Wall   -c -o oclengine.o oclengine.c
oclengine.c: In function ‘vg_ocl_prefix_check’:
oclengine.c:1553:18: warning: variable ‘tablesize’ set but not used [-Wunused-but-set-variable]
  int orig_delta, tablesize;
                  ^
cc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make: *** [oclvanitygen] Error 1
Error "/usr/bin/ld: cannot find -lOpenCL" is what I've had before, and so far if I got rid of this error I got an oclvanitygen that can't find a platform.

Any more suggestions are much appreciated Wink
Now we need to know where your OpenCL lib is stored.

$ find /usr -name libOpenCL.so
Pages:
Jump to: