Skip to content

Out Of Memory error with HIP #157

@gzagaris

Description

@gzagaris

When using camp with RAJA, I am getting the following out-of-memory error from camp:

terminate called after throwing an instance of 'std::runtime_error'
  what():  campHipErrchk(hipStreamCreate(&s)) out of memory .../camp/include/camp/resource/hip.hpp:154

The relevant code is the following:

     static Hip get_default()
      {
        static Hip h([] {
          hipStream_t s;
#if CAMP_USE_PLATFORM_DEFAULT_STREAM
          s = 0;
#else
          campHipErrchk(hipStreamCreate(&s));
#endif
          return s;
        }());
        return h;
      }
  • Is camp inadvertently creating streams and never deleting them?
  • If I pass the -DCAMP_USE_PLATFORM_DEFAULT_STREAM=1, I get passed this error (and kick the pesky core dump a bit further down). Is passing -DCAMP_USE_PLATFORM_DEFAULT_STREAM=1 what the recommendation is for AMD GPUs?

Thank you for all your help.

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