Files
rocm-systems/projects/clr
JonathanLichtnerAMD f31afe1d20 [HIP CLR] Make hipMemPtrGetInfo consistent with malloc and hipMalloc (#1005)
hipMemPtrGetInfo was returning the error hipErrorInvalidValue if it
was called on a nullptr.  However, this does not match the malloc
convention where a nullptr has size zero;  for example,
malloc_usable_size() returns zero if called on a nullptr.

This commit changes hipMemPtrGetInfo to set the size to zero and
return hipSuccess when called with a nullptr.  (This also fits with
hipMalloc and hipFree usage, since hipMalloc of size zero results in a
nullptr, and hipFree of a nullptr is successful.)
2025-09-19 12:53:41 -06:00
..
2025-03-20 15:40:50 +05:30
2025-09-10 12:06:14 -04:00

AMD CLR - Compute Language Runtimes

Caution

The clr repository is retired, please use the ROCm/rocm-systems repository for development. This develop branch will only accept patch updates from a bot that mirrors clr-specific updates from rocm-systems into here.

AMD CLR (Compute Language Runtime) contains source codes for AMD's compute languages runtimes: HIP and OpenCL™.