Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out Of Memory error with HIP #157

Open
gzagaris opened this issue Sep 25, 2024 · 0 comments
Open

Out Of Memory error with HIP #157

gzagaris opened this issue Sep 25, 2024 · 0 comments

Comments

@gzagaris
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant