Hi Eric,
You *can* use directives in HPX but they come with no integration whatsoever with the HPX runtime. That means that you don't get futures from kernels, and any blocking that you do while waiting for kernels to finish block the full OS thread instead of letting other HPX tasks run in the meantime. So this approach is not recommended. I don't exactly know the state of HPXCL but my impression is that it's no longer maintained. Maybe others can comment on the state of it. HPX.Compute is in the HPX repository. You only need to enable the CUDA parts of it with the CMake option HPX_WITH_CUDA=ON (there is some CPU functionality that is enabled by default). What it gives you right now is at the low level a way to get futures to the completion of CUDA kernels. A bit higher up there's experimental support for CUDA executors and support for some parallel algorithms with those executors. HIP support is in progress: https://github.com/STEllAR-GROUP/hpx/pull/4947. A new effort is integration with Kokkos. HPX would provide the low level synchronization between kernels, and Kokkos the implementations for parallel algorithms (through the HPX interface). This is still quite early work, but if you're interested in trying this out I can help you out there. This is just a high level overview, so let us know if you have any more specific use cases in mind. Kind regards, Mikael ________________________________ From: hpx-users-boun...@stellar-group.org <hpx-users-boun...@stellar-group.org> on behalf of Eric Raut <eric.r...@stonybrook.edu> Sent: Friday, September 11, 2020 18:27 To: hpx-users@stellar-group.org Subject: [hpx-users] GPU support in HPX Hello, I'm wondering what the current state of GPU support is in HPX. In particular, would it be possible to use directive-based GPU offloading (e.g., OpenMP or OpenACC) with HPX, perhaps in conjunction with HPXCL? Also, I saw HPX.Compute mentioned in a publication, for automatic execution of code on GPUs. Is this available within HPX, or is it a separate code base? Thanks very much for the information! Eric
_______________________________________________ hpx-users mailing list hpx-users@stellar-group.org https://mail.cct.lsu.edu/mailman/listinfo/hpx-users