xmr-stak-amd icon indicating copy to clipboard operation
xmr-stak-amd copied to clipboard

Fatal error: 'CL/cl.h' file not found

Open Vladis432 opened this issue 8 years ago • 6 comments

What version of AMD APP SDK need? I try to compile in Visual Studio, and get an error Cannot open include file: 'OpenCL/cl.h': No such file or directory.

Vladis432 avatar Oct 11 '17 10:10 Vladis432

I had the same issue, but solved it. AMD APP SDK uses 2 locations: one in C:\Users\Username\AMD... and a second in C:\Program files (x86)\AMD. The second one is needed for cmake, not the first!

V1pr avatar Oct 16 '17 14:10 V1pr

I use second one, and it's not working.

What version are you use?

Vladis432 avatar Oct 16 '17 19:10 Vladis432

VS is 2017 Communitx (15.4) AMD APP SDK 3.0 Windows 10 x64 cmake 3.9.4 OpenCL include dir: C:/Program Files (x86)/AMD APP SDK/3.0/include OpenCL library: C:/Program Files (x86)/AMD APP SDK/3.0/lib/x86_64/OpenCL.lib

Check the windows variable AMDAPPSDKROOT if it's also set to 'C:\Program Files (x86)\AMD APP SDK\3.0'

Lame question: do you've this file? "c:\Program Files (x86)\AMD APP SDK\3.0\include\CL\cl.h"

V1pr avatar Oct 16 '17 19:10 V1pr

I'm getting the same error: c:\xmr_compile\amd_gpu\gpu.h(3): fatal error C1083: Cannot open include file: 'CL/cl.h': No such file or directory [C:\xmr_compile\build\xmr-stak-amd.vcxproj]

I confirmed I have these directories: C:/Program Files (x86)/AMD APP SDK/3.0/include C:/Program Files (x86)/AMD APP SDK/3.0/lib/x86_64/OpenCL.lib

...and confirmed I have this file: c:\Program Files (x86)\AMD APP SDK\3.0\include\CL\cl.h"

...I also set AMDAPPSDKROOT to 'C:\Program Files (x86)\AMD APP SDK\3.0' (it wasn't set)

Still not working. How do I get the build/make process to "see" this missing cl.h file?? The other xmr variants are easy to compile in Windows, this xmr-stak-amd is a pain in the butt!

amdvega avatar Nov 19 '17 19:11 amdvega

Has anyone solved this ?

jameswan avatar Oct 08 '18 11:10 jameswan

yes use our latest version https://github.com/fireice-uk/xmr-stak This repo here is not maintained anymore.

psychocrypt avatar Oct 08 '18 13:10 psychocrypt