HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
HCC-Specific Accessors

Functions

hipError_t hipHccGetAccelerator (int deviceId, hc::accelerator *acc)
 Return hc::acclerator associated with the specified deviceId. More...
 
hipError_t hipHccGetAcceleratorView (hipStream_t stream, hc::accelerator_view **av)
 Return hc::acclerator_view associated with the specified stream. More...
 

Detailed Description

----------------------------------------------------------------------------------------------—

The following calls are only supported when compiler HIP with HCC. To produce portable code, use of these calls must be guarded #ifdef checks:

#ifdef __HCC__
hc::accelerator acc;
hipError_t err = hipHccGetAccelerator(deviceId, &acc)
#endif

Function Documentation

hipError_t hipHccGetAccelerator ( int  deviceId,
hc::accelerator *  acc 
)

Return hc::acclerator associated with the specified deviceId.

Returns
hipSuccess, hipErrorInvalidDevice
hipError_t hipHccGetAcceleratorView ( hipStream_t  stream,
hc::accelerator_view **  av 
)

Return hc::acclerator_view associated with the specified stream.

Returns
hipSuccess