Giter Club home page Giter Club logo

Comments (4)

EgorKupaev avatar EgorKupaev commented on August 25, 2024

Hi @kswiecicki,

what version of DML are you using? In the latest v0.1.5-beta the issue was fixed.

The exact code is:

constexpr auto get_job_size() noexcept
{
    constexpr auto alignment = 64u;
    constexpr auto job_size = sizeof(dml_job_t);
    constexpr auto state_size = sizeof(dml::state);

    // Enough size for job, state, and to align state to default boundary
    return job_size + state_size + alignment;
}

It's approximately 200 bytes of memory.

from dml.

kswiecicki avatar kswiecicki commented on August 25, 2024

I see, I've been using the DML built from develop branch ~3 weeks ago (v0.1.4-beta tag).
I've just installed the DML from the v0.1.5-beta tag to check if the job size fix is working, but I get an awful lot of linker errors when building the source I previously linked the v0.1.4-beta version with.
I didn't change anything in my build system, to double check I've restored the previous DML version and it's working properly. I've also made sure to link 'libdml.a' and not 'libdmlhl.a' by mistake.

DML build steps:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DDML_HW=ON -DLIB_ACCEL_3_2=ON ..
cmake --build . --target install

Could you take a look at the linker errors?
dml_logs.txt

from dml.

EgorKupaev avatar EgorKupaev commented on August 25, 2024

I've checked the issue. Release v0.1.5-beta unintentionally added C++ compiler dependency to C API.

I am looking for solution.

from dml.

EgorKupaev avatar EgorKupaev commented on August 25, 2024

The issue was fixed in v0.1.6.0-beta.

I confirmed that there are no linker errors with a simple program. I used just C compiler for a build. Feel free to re-open the issue if it still can't be linked at your environment.

from dml.

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.