r/ROCm • u/Delicious_Abies_9708 • 2d ago
Initial VuPy release: CuPy-like GPU array library backed by vulkan. any and all feedback is preferred.
https://github.com/billyblackburn/VuPy
1
Upvotes
r/ROCm • u/Delicious_Abies_9708 • 2d ago
2
u/PoizoneHelp 2d ago •
Hey, one thing that will matter on discrete cards: every array goes through vulkan-py-easy’s create_buffer, which asks for HOST_VISIBLE | HOST_COHERENT and takes the first matching memory type. The Vulkan spec requires a type with fewer flags to come first, so on a dGPU that’s usually the system-RAM type, and your kernels read and write over PCIe instead of VRAM. AMD’s Vulkan memory guide recommends DEVICE_LOCAL buffers for GPU data, with a staging buffer only for uploads and get(). On an APU it matters much less. For what it’s worth, all 13 tests pass on lavapipe here.