2023-08-17 14:59:24 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(ROCP_REG_TEST_WEAK) && ROCP_REG_TEST_WEAK > 0
|
|
|
|
|
# pragma weak hip_init
|
|
|
|
|
# pragma weak hsa_init
|
|
|
|
|
# pragma weak roctxRangePush
|
|
|
|
|
# pragma weak roctxRangePop
|
2024-09-11 15:57:51 -07:00
|
|
|
# pragma weak ncclGetVersion
|
2025-01-21 21:00:43 -06:00
|
|
|
# pragma weak rocDecCreateDecoder
|
2025-01-27 11:50:12 -06:00
|
|
|
# pragma weak rocJpegStreamCreate
|
2023-08-17 14:59:24 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern void
|
|
|
|
|
hip_init(void);
|
|
|
|
|
|
|
|
|
|
extern void
|
|
|
|
|
hsa_init(void);
|
|
|
|
|
|
|
|
|
|
extern void
|
|
|
|
|
roctxRangePush(const char*);
|
|
|
|
|
|
|
|
|
|
extern void
|
|
|
|
|
roctxRangePop(const char*);
|
|
|
|
|
|
2024-09-11 15:57:51 -07:00
|
|
|
enum ncclResult_t
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern ncclResult_t
|
|
|
|
|
ncclGetVersion(int* version);
|
|
|
|
|
|
2025-01-21 21:00:43 -06:00
|
|
|
enum rocDecStatus
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum rocDecDecoderHandle
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum RocDecoderCreateInfo
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern rocDecStatus
|
|
|
|
|
rocDecCreateDecoder(rocDecDecoderHandle* decoder_handle,
|
|
|
|
|
RocDecoderCreateInfo* decoder_create_info);
|
|
|
|
|
|
2025-01-27 11:50:12 -06:00
|
|
|
enum RocJpegStatus
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum RocJpegStreamHandle
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern RocJpegStatus
|
|
|
|
|
rocJpegStreamCreate(RocJpegStreamHandle* jpeg_stream_handle);
|
|
|
|
|
|
2023-08-17 14:59:24 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|