Skip to content

feat: add AMD hipFile GPU Direct Storage backend - #540

Merged
JulianKunkel merged 3 commits into
hpc:mainfrom
potatogim:feat/hipfile-support-v2
Sep 9, 2026
Merged

JulianKunkel merged 3 commits into
hpc:mainfrom
potatogim:feat/hipfile-support-v2

Conversation

@potatogim

@potatogim potatogim commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Depends on #539.

New files:

  • src/hip_runtime.c: gpu_runtime_* using HIP
  • src/gpu_io_hipfile.c: gpu_io_* using hipFile
  • src/utilities-gpu.hip: HIP kernels

configure: --with-hip, --with-hipfile, --with-gpu-direct-backend=hipfile.
Makefile.am: .hip.o rule, HIP source list.

hipFile needs ROCm 7.2.x+, local NVMe, ext4/xfs, kernel P2PDMA.

potatogim added 2 commits July 7, 2026 00:23
cuFile calls were scattered directly in aiori-POSIX.c. Move them into
two layers:

- gpu_runtime.h / cuda_runtime.c: wraps cudaMalloc, cudaFree, etc.
- gpu_io.h / gpu_io_cufile.c: wraps cuFile driver, register, read/write

aiori-POSIX.c now calls only gpu_io_* / gpu_runtime_*.

configure.ac: --with-cuda=PREFIX and --with-cufile=PREFIX with proper
save/restore. --with-gpu-direct-backend=cufile|none replaces
--with-gpuDirect (kept as alias). HAVE_GPU = HAVE_CUDA for now.

No behaviour change.
Adds HIP runtime (hip_runtime.c) and hipFile GDS backend (gpu_io_hipfile.c)
plus HIP kernels (utilities-gpu.hip).

configure: --with-hip, --with-hipfile, --with-gpu-direct-backend=hipfile.
hipFile needs ROCm 7.2.x+ and is opt-in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants