[flang-commits] [flang] [flang][cuda] Add RT_API_ATTRS to allocator functions (PR #102235)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Tue Aug 6 14:53:48 PDT 2024


clementval wrote:

> Looks okay, though, I am not sure if all the driver APIs (like `cuMemAllocHost`) can be used in kernel code. Isn't it okay to use `malloc`/`free` in the device code?

Yeah for sure allocating host data from the device makes no sense. Maybe we should register different allocators in the device code. 

https://github.com/llvm/llvm-project/pull/102235


More information about the flang-commits mailing list