Code Monkey home page Code Monkey logo

Comments (4)

franz avatar franz commented on June 14, 2024

Fixed

from chipstar.

pjaaskel avatar pjaaskel commented on June 14, 2024

Might not be 100% fixed yet:

/home/visit0r/src/chip-spv/src/CHIPDriver.cc:146:19: error: unknown type name 'CHIPBackendOpenCL'
    Backend = new CHIPBackendOpenCL();

from chipstar.

pjaaskel avatar pjaaskel commented on June 14, 2024

That was a one-off issue patched with:

--- a/src/CHIPDriver.cc
+++ b/src/CHIPDriver.cc
@@ -143,7 +143,13 @@ extern hipError_t CHIPReinitialize(const uintptr_t *NativeHandles,
       logDebug("CHIP_BE was not set. Defaulting to OPENCL");
     else
       logDebug("CHIPBE=OPENCL... Initializing OpenCL Backend");
+#ifdef HAVE_OPENCL
     Backend = new CHIPBackendOpenCL();
+#else
+    CHIPERR_LOG_AND_THROW("Invalid CHIP-SPV Backend Selected. This CHIP-SPV "
+                          "was not compiled with OpenCL backend",
+                          hipErrorInitializationError);
+#endif
   } else if (!CHIPBackendType.compare("level0")) {
     logDebug("CHIPBE=LEVEL0... Initializing Level0 Backend");
     Backend = new CHIPBackendLevel0();

But also at linkage it seems to want OpenCL symbols.

[ 57%] Linking CXX executable hip_async_binomial
/usr/bin/ld: CMakeFiles/hip_async_binomial.dir/BinomialOptionOpenCL.cpp.o: in function `runOpenCLKernel':
BinomialOptionOpenCL.cpp:(.text+0xb3): undefined reference to `clCreateProgramWithIL'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x13a): undefined reference to `clBuildProgram'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x183): undefined reference to `clGetProgramBuildInfo'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x1e3): undefined reference to `clGetProgramBuildInfo'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x278): undefined reference to `clCreateKernel'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x2c4): undefined reference to `clSetKernelArg'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x30a): undefined reference to `clSetKernelArgSVMPointer'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x350): undefined reference to `clSetKernelArgSVMPointer'
/usr/bin/ld: BinomialOptionOpenCL.cpp:(.text+0x42a): undefined reference to `clEnqueueNDRangeKernel'

from chipstar.

franz avatar franz commented on June 14, 2024

fixed by PR #113

from chipstar.

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.