Skip to content

[Issue]: HIP Backend - Gated HIP Launch #618

@kiritigowda

Description

@kiritigowda

Problem Description

GPU run needs to exit when missing CO is detected or when hipLaunchKernel returns error -- i.e. hipErrorInvalidDeviceFunction

Requires

  • HIP Check
#define HIP_CHECK(command) { \
    hipError_t status = command; \
    if (status != hipSuccess) { \
        std::cerr << "AMD RPP: HIP Error Reported -- " << hipGetErrorString(status) << std::endl; \
        return status; \
    } \
 }
  • Error check after launching - hipLaunchKernelGGL
HIP_CHECK(hipGetLastError()); // Check for launch error

Operating System

All

CPU

All

GPU

Other

Other

All ROCm supported GPUs

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions