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

note: LINK : fatal error LNK1181: cannot open input file 'OpenCL.lib' #16

Open
ghost opened this issue May 31, 2018 · 12 comments
Open

note: LINK : fatal error LNK1181: cannot open input file 'OpenCL.lib' #16

ghost opened this issue May 31, 2018 · 12 comments

Comments

@ghost
Copy link

ghost commented May 31, 2018

Trying to compile in Rust with --features gpu. Compiles and works fine with CPU. Any ideas?

Win 10 Pro 64
Nvidia 1080ti
Driver 397.93

Thank you,

R

@PlasmaPower
Copy link
Owner

Install the Nvidia CUDA toolkit then restart

@lephleg
Copy link

lephleg commented Aug 2, 2019

@PlasmaPower I am also facing this:

error: linking with link.exe failed: exit code: 1181
LINK : fatal error LNK1181: cannot open input file 'OpenCL.lib'

OS:
Windows 10 Pro (64bit)
Graphics Chipset:
Radeon (TM) RX 480 Graphics
Radeon Software Edition:
Adrenalin 2019
Radeon Software Version:
19.7.5

GPUZ

@PlasmaPower
Copy link
Owner

@lephleg Unfortunately I believe there are also other issues using this with AMD cards. See #33

@lephleg
Copy link

lephleg commented Aug 2, 2019

@PlasmaPower As weird as it may sound, I am also getting this without passing the --features gpu flag now...

@PlasmaPower
Copy link
Owner

try --no-default-features

@lephleg
Copy link

lephleg commented Aug 2, 2019

Success at last! Let's see how far an i5 can get us... :)

@MikeRow
Copy link

MikeRow commented Sep 20, 2019

Tested on i7-7700HQ (no GPU flag): 200k keys/second
Tested on GTX1080 (notebook version): 1.8M keys/second

Good job @PlasmaPower

@MikeRow
Copy link

MikeRow commented Sep 20, 2019

@PlasmaPower As weird as it may sound, I am also getting this without passing the --features gpu flag now...

I had the same troubles on windows 10.
Fix:

  • Install Visual Studio 2019 (Community version, free)
  • Install Nvidia CUDA toolkit
  • restart computer

Compile with GPU flag.

@adrianegraphene
Copy link

adrianegraphene commented Oct 29, 2019

I am stuck on this exact problem too. I can pass --no-default-features and get a successful build, but only my CPU is used, not my GPU....

If I try passing cargo --features gpu, it overrides --no-default-features and I end up with the same error as OP.

@adrianegraphene
Copy link

adrianegraphene commented Oct 29, 2019

Ok, after downloading this from github, I was able to install with cargo install nano-vanity --features gpu

However, when I try nano-vanity .robocash --gpu-device 0 --threads 0, I get

Estimated attempts needed: 1099511627776
No computation devices specified

If I try nano-vanity .robocash --gpu, the estimates comes up, followed by a delay, then the following.

Estimated attempts needed: 1099511627776

thread 'main' has overflowed its stack

GPU: AMD RX Radeon 5700 XT
LuxMark v3.1 score: 2061

@PlasmaPower Sorry to be a bug, any tips you can give for this? My CPU would take months to generate an 8 character vanity, but my GPU should be much quicker.... I tried running with --gpu as well to be sure I wasn't just calling the wrong GPU index. I tried compiling first with --features gpu, then installing with --features gpu, but that made no difference to me.

@guilhermelawless
Copy link

guilhermelawless commented Nov 27, 2019

EDIT: Compilation works, but crashes while opening the device.

Instructions for AMD are quite simple. See https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases/latest , download the .exe and install. Contains only a few headers and libs, nothing like the Nvidia toolkit.

It should also set the required environment variables so everything works, but just in case, the libraries are then located in C:\Program Files (x86)\OCL_SDK_Light

@boogerlad
Copy link

Adding a system environment variable named "LIB" with a value "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\lib\x64" worked for me

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

6 participants