Re: [Mesa-dev] [clover/spirv] radeonsi/NIR (with Nine) - final linking failed on libOpenCL.so.1.0.0

2019-09-29 Thread Dieter Nützel
Sorry Aaron, that I haven't had the time to save you some time... I've only set CFLAGS="-fPIC" and CXXFLAGS="-fPIC" and run cmake .. make llvm-spirv -j`nproc` And could rebuild mesa with -Dopencl-spirv=true -Dgallium-opencl=standalone Only old luxmark-linux64-v2.0 (scene 'LuxBall Sky')

Re: [Mesa-dev] [clover/spirv] radeonsi/NIR (with Nine) - final linking failed on libOpenCL.so.1.0.0

2019-09-29 Thread Aaron Watry
Yup. I thought I had tried to do that, but I probably messed it up. I just ran the following for the spirv translator and was able to rebuild mesa with the spirv functionality enabled: mkdir build cd build CFLAGS="-fPIC" CXXFLAGS="-fPIC" LDFLAGS="-fPIC" ccmake ../ CFLAGS="-fPIC" CXXFLAGS="-fPIC"

Re: [Mesa-dev] [clover/spirv] radeonsi/NIR (with Nine) - final linking failed on libOpenCL.so.1.0.0

2019-09-26 Thread Karol Herbst
I think you only need to recompile the translator with -fPIC enabled. At least that's what the error is saying. On Thu, Sep 26, 2019 at 6:53 AM Aaron Watry wrote: > > Pretty sure I'm running into the same thing trying to build clover > with llvm-spirv enabled. If it's a known solution, I

Re: [Mesa-dev] [clover/spirv] radeonsi/NIR (with Nine) - final linking failed on libOpenCL.so.1.0.0

2019-09-25 Thread Aaron Watry
Pretty sure I'm running into the same thing trying to build clover with llvm-spirv enabled. If it's a known solution, I wouldn't mind having some time saved :) --Aaron On Wed, Sep 25, 2019 at 10:30 AM Dieter Nützel wrote: > > Hello Karol and Pierre, > > tried it on radeonsi/NIR with Nine and

[Mesa-dev] [clover/spirv] radeonsi/NIR (with Nine) - final linking failed on libOpenCL.so.1.0.0

2019-09-25 Thread Dieter Nützel
Hello Karol and Pierre, tried it on radeonsi/NIR with Nine and OpenCL enabled (-Dgallium-nine=true -Dopencl-spirv=true -Dgallium-opencl=standalone). I think I have all SPIRV-LLVM-Translator stuff in place (/opt/llvm/projects/SPIRV-LLVM-Translator/). Resulting lib is installed at