Coder Social home page Coder Social logo

hsa-class's Introduction

HSA-class

HSA high level C++ API

hsa-class's People

Contributors

eshcherb avatar aaronenyeshi avatar ammarwa avatar tpkessler avatar lmoriche avatar

Watchers

James Cloos avatar Peng avatar Ben Sander avatar Bragadeesh Natarajan avatar Jun Liu avatar James Edwards avatar  avatar

hsa-class's Issues

[Build error] Missing string header

When compiling roctracer I get the following build error:

In file included from /tmp/roctracer-rocm-3.5.0/test/hsa/test/simple_convolution/simple_convolution.h:29,
                 from /tmp/roctracer-rocm-3.5.0/test/hsa/test/simple_convolution/simple_convolution.cpp:23:
/tmp/roctracer-rocm-3.5.0/test/hsa/test/ctrl/test_kernel.h:81:16: error: ‘string’ in namespace ‘std’ does not name a type
   81 |   virtual std::string Name() const = 0;
      |                ^~~~~~
/tmp/roctracer-rocm-3.5.0/test/hsa/test/ctrl/test_kernel.h:28:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   27 | #include <stdint.h>
  +++ |+#include <string>
   28 | #include <map>
/tmp/roctracer-rocm-3.5.0/test/hsa/test/ctrl/test_kernel.h: In member function ‘bool TestKernel::SetHostDescr(const uint32_t&, const TestKernel::des_id_t&, const uint32_t&)’:
/tmp/roctracer-rocm-3.5.0/test/hsa/test/ctrl/test_kernel.h:105:19: error: ‘malloc’ was not declared in this scope
  105 |       descr.ptr = malloc(size);
      |                   ^~~~~~
/tmp/roctracer-rocm-3.5.0/test/hsa/test/ctrl/test_kernel.h:28:1: note: ‘malloc’ is defined in header ‘<cstdlib>’; did you forget to ‘#include <cstdlib>’?
   27 | #include <stdint.h>
  +++ |+#include <cstdlib>
   28 | #include <map>
In file included from /tmp/roctracer-rocm-3.5.0/test/hsa/test/simple_convolution/simple_convolution.cpp:23:
/tmp/roctracer-rocm-3.5.0/test/hsa/test/simple_convolution/simple_convolution.h: At global scope:
/tmp/roctracer-rocm-3.5.0/test/hsa/test/simple_convolution/simple_convolution.h:50:8: error: ‘string’ in namespace ‘std’ does not name a type
   50 |   std::string Name() const { return std::string("SimpleConvolution"); }
      |        ^~~~~~
/tmp/roctracer-rocm-3.5.0/test/hsa/test/simple_convolution/simple_convolution.h:30:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   29 | #include "ctrl/test_kernel.h"
  +++ |+#include <string>
   30 | 

This issue is similar to ROCm/rocprofiler#25
I fixed it by adding

#include <string>

to test/ctrl/test_kernel.h

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.