Skip to content

Compile Error from an example code #438

Description

@ArtyomStebenev

I've built realese-0.9.0. I've copied the example code from README and had this compile error:

../kompute-test.hpp:23:37: error: no member named 'Memory' in namespace 'kp'
   23 |     std::vector<std::shared_ptr<kp::Memory>> params = {tensorInA, tensorInB, tensorOutA, tensorOutB};
      |                                 ~~~~^
../kompute-test.hpp:33:36: error: use of undeclared identifier 'compileSource'
   33 |                                    compileSource(shader),
      |                                    ^
../kompute-test.hpp:40:22: error: no member named 'OpSyncDevice' in namespace 'kp'
   40 |         ->record<kp::OpSyncDevice>(params)
      |                  ~~~~^
../kompute-test.hpp:48:23: error: no member named 'OpSyncLocal' in namespace 'kp'
   48 |     sq->evalAsync<kp::OpSyncLocal>(params);

Why this error happend? I've tried to search via all files and it didn`t find any reference in kp::.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions