Skip to content

Commit

Permalink
HIP: removed unused hipHostAllocDefault
Browse files Browse the repository at this point in the history
- Apparently, some API elements are "mirrored" (TODO: confirm why necessary).
- In particular, "hipHostAllocDefault" now changed "upstream" hence clash.
- Cleanup: removed duplicated prototype (hipHostAlloc).
  • Loading branch information
hfp committed Jan 6, 2025
1 parent 818b6d9 commit b0b7ea1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/acc/hip/acc_hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags) { return hi
hipError_t hipFreeHost(void* ptr) { return hipHostFree(ptr); }
#endif

unsigned int hipHostAllocDefault = hipHostMallocDefault;

hiprtcResult hiprtcGetLowLevelCode(hiprtcProgram prog, char* code) { return hiprtcGetCode(prog, code); }

hiprtcResult hiprtcGetLowLevelCodeSize(hiprtcProgram prog, size_t* codeSizeRet) { return hiprtcGetCodeSize(prog, codeSizeRet); }
Expand Down
2 changes: 0 additions & 2 deletions src/acc/hip/acc_hip.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
} while (0)

extern hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags);
extern hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags);
extern unsigned int hipHostAllocDefault;
extern hipError_t hipFreeHost(void* ptr);
extern hiprtcResult hiprtcGetLowLevelCode(hiprtcProgram prog, char* code);
extern hiprtcResult hiprtcGetLowLevelCodeSize(hiprtcProgram prog, size_t* codeSizeRet);
Expand Down

0 comments on commit b0b7ea1

Please sign in to comment.