[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:59:26 PDT 2024
    
    
  
clementval wrote:
> Maybe we can always assume the default allocator index in device code, so that `malloc` and `free` are used. Then we do not need to register any other allocators on the device. I suppose registration will require a kernel invocation, which adds some overhead.
Yeah I think that is a better alternative than registering allocators each time. I'll prepare a patch for that and this one is not needed after all. 
https://github.com/llvm/llvm-project/pull/102235
    
    
More information about the flang-commits
mailing list