Coder Social home page Coder Social logo

Comments (9)

micah avatar micah commented on July 20, 2024

It seems like this error comes from https://smlnj-gitlab.cs.uchicago.edu/manticore/llvm/blob/c75c50f45b3d6d1d61ce6b411d12cedaadd71d5b/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp#L49

from silentarmy.

mbevand avatar mbevand commented on July 20, 2024

It seems you are running the "Clover" OpenCL driver, instead of the AMD OpenCL driver. Can you report the output of:

head -99 /etc/OpenCL/vendors/*
ldd sa-solver
find /usr /opt -name "libOpenCL.so*" 2>/dev/null

from silentarmy.

micah avatar micah commented on July 20, 2024

It seems you are running the "Clover" OpenCL driver, instead of the AMD OpenCL driver. Can you report the output of:

head -99 /etc/OpenCL/vendors/*
ldd sa-solver
find /usr /opt -name "libOpenCL.so*" 2>/dev/null

silentarmy$ head -99 /etc/OpenCL/vendors/*
==> /etc/OpenCL/vendors/amdocl32.icd <==
libamdocl32.so

==> /etc/OpenCL/vendors/amdocl64.icd <==
libamdocl64.so

==> /etc/OpenCL/vendors/mesa.icd <==
libMesaOpenCL.so.1
micah@muck:silentarmy$ ldd sa-solver 
    linux-vdso.so.1 (0x00007ffcdd5ef000)
    libOpenCL.so.1 => /opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so.1 (0x00007f8a46909000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8a4656b000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8a46363000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8a4605f000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8a45e5b000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8a45c3c000)
    /lib64/ld-linux-x86-64.so.2 (0x00005650e67c4000)
micah@muck:silentarmy$ find /usr /opt -name "libOpenCL.so*" 2>/dev/null
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
/usr/lib/x86_64-linux-gnu/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86/libOpenCL.so.1
/opt/AMDAPPSDK-3.0/lib/x86/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so.1
/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so
/opt/amdgpu-pro/lib/i386-linux-gnu/libOpenCL.so.1
/opt/amdgpu-pro/lib/i386-linux-gnu/libOpenCL.so
/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so.1
/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so
silentarmy1$ 

from silentarmy.

mbevand avatar mbevand commented on July 20, 2024

mv /etc/OpenCL/vendors/mesa.icd /etc/OpenCL/vendors/mesa.icd.disabled

...then try silentarmy again.

from silentarmy.

micah avatar micah commented on July 20, 2024

mbevand [email protected] writes:

mv /etc/OpenCL/vendors/mesa.icd /etc/OpenCL/vendors/mesa.icd.disabled

...then try silentarmy again.

Did that, now I get:

silentarmy$ ./sa-solver --nonces 10000 
Solving default all-zero 140-byte header
Cannot get OpenCL platforms (-1001)

if I put it back, I get the Pseudo instruction error again

from silentarmy.

mbevand avatar mbevand commented on July 20, 2024

It seems you have a broken install of amdgpu-pro drivers.

Can I ask what steps you took to install it on your Debian system? And is it Jessie?

from silentarmy.

micah avatar micah commented on July 20, 2024

mbevand [email protected] writes:

It seems you have a broken install of amdgpu-pro drivers.

Can I ask what steps you took to install it on your Debian system? And is it Jessie?

I was afraid of that.

Its a debian sid system. The only linux drivers I could find where for
ubuntu. The install script just tries to detect what release you are,
based on what is in /etc/os-release, only looking for 'ubuntu' or
'steamos' and then installs the packages. So I just made it also check
for for debian.

I'd love to know what is missing or messed up, so it can be corrected!

from silentarmy.

micah avatar micah commented on July 20, 2024

mbevand [email protected] writes:

It seems you have a broken install of amdgpu-pro drivers.

Can I ask what steps you took to install it on your Debian system? And is it Jessie?

I just solved it... I found that amdgpu-pro_16.40-348864_amd64.deb and
opencl-amdgpu-pro-icd:amd64 were not installed. Once I installed those
and then moved /etc/OpenCL/vendors/mesa.icd out of the way, and now
silentarmy is working (!).

That mesa.icd file comes from mesa-opencl-icd:amd64, so I just removed
that package.

from silentarmy.

mbevand avatar mbevand commented on July 20, 2024

Yay! Great. Yeah you don't need that mesa (clover) OpenCL implementation.

from silentarmy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.