Git Product home page Git Product logo

Comments (3)

ntkylin avatar ntkylin commented on August 15, 2024

Hi, I am trying to give you some advice. For your igpu like Ryzen 5700G, the graphic core arch is still same as Vega dgpu so you can try to install driver from gpu like Radeon Vii, reference the guide Radeon™ Software for Linux® Installation.

from katago.

lightvector avatar lightvector commented on August 15, 2024

Do you know where the lib and include dirs are for your OpenCL installation? If so, it may work to specify -DOpenCL_LIBRARY=... -DOpenCL_INCLUDE_DIR=... but replacing the ... with the appropriate paths to those directories when running cmake.

from katago.

w3333 avatar w3333 commented on August 15, 2024

Hi David, thanks for your answer. I installed pocl via apt (sudo apt install pocl-opencl-icd), so I guess no source code was installed this way - but I'm not a dev. So I got the source for the project (git clone https://github.com/pocl/pocl.git), and tried as you said... but then I get
:~/KataGo/cpp$ cmake . -DUSE_BACKEND=OPENCL -DOpenCL_LIBRARY=~/Downloads/pocl/lib -DOpenCL_INCLUDE_DIR=~/Downloads/pocl/include -- Building 'katago' executable for GTP engine and other tools. -- -DUSE_BACKEND=OPENCL, using OpenCL backend. -- Including Git revision in the compiled executable, specify -DNO_GIT_REVISION=1 to disable -- Found OpenCL: /home/werner/Downloads/pocl/lib -- Setting up build for GNU or Clang. -- Enabling GNU-specific build options. -- Configuring done WARNING: Target "katago" requests linking to directory "/home/werner/Downloads/pocl/lib". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: /home/werner/KataGo/cpp

And then when I try "make" anyway, I get a trillion errors like
/usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3204: undefined reference to clReleaseMemObject'
/usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3205: undefined reference to clReleaseMemObject' /usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3206: undefined reference to clReleaseMemObject'
/usr/bin/ld: CMakeFiles/katago.dir/neuralnet/openclbackend.cpp.o: in function BatchNormLayer::~BatchNormLayer()': /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:895: undefined reference to clReleaseMemObject'
/usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:896: undefined reference to clReleaseMemObject' /usr/bin/ld: CMakeFiles/katago.dir/neuralnet/openclbackend.cpp.o: in function NeuralNet::testEvaluateConv(ConvLayerDesc const*, int, int, int, bool, bool, std::vector<float, std::allocator > const&, std::vector<float, std::allocator >&)':
/home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3143: undefined reference to clCreateBuffer' /usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3149: undefined reference to clReleaseMemObject'
/usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3150: undefined reference to clReleaseMemObject' /usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3151: undefined reference to clReleaseMemObject'
/usr/bin/ld: /home/werner/KataGo/cpp/neuralnet/openclbackend.cpp:3152: undefined reference to clReleaseMemObject' /

which is probably due to the "lib" error in the first step. Is that fixable easily? Sorry, no dev here :)

from katago.

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.