Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tpetra: unnecessary UVM ETI #12189

Closed
jhux2 opened this issue Aug 31, 2023 · 4 comments
Closed

Tpetra: unnecessary UVM ETI #12189

jhux2 opened this issue Aug 31, 2023 · 4 comments
Labels
pkg: Tpetra type: bug The primary issue is a bug in Trilinos code or tests

Comments

@jhux2
Copy link
Member

jhux2 commented Aug 31, 2023

Is this usage of UVM a problem? This doesn't appear to be ifdef guarded.

typedef Kokkos::Device<Kokkos::Cuda, Kokkos::CudaUVMSpace> cuda_uvm_device_type;
#define TPETRA_DETAILS_FIXEDHASHTABLE_INSTANT_CUDA( LO, GO ) \
TPETRA_DETAILS_FIXEDHASHTABLE_INSTANT( LO, GO, cuda_device_type )
TPETRA_INSTANTIATE_LG( TPETRA_DETAILS_FIXEDHASHTABLE_INSTANT_CUDA )
#define TPETRA_DETAILS_FIXEDHASHTABLE_INSTANT_CUDA_UVM( LO, GO ) \
TPETRA_DETAILS_FIXEDHASHTABLE_INSTANT( LO, GO, cuda_uvm_device_type )

@trilinos/tpetra

@jhux2 jhux2 added type: bug The primary issue is a bug in Trilinos code or tests pkg: Tpetra labels Aug 31, 2023
@jhux2
Copy link
Member Author

jhux2 commented Aug 31, 2023

This is only instantiating for UVM, so perhaps it's not so bad.

@brian-kelley
Copy link
Contributor

It seems like we never use FixedHashTable with the <Cuda, CudaUVMSpace>, regardless of the Tpetra_ENABLE_CUDA_UVM setting. There's no major harm in instantiating for it, but it adds some library size and build time.

@jhux2 jhux2 changed the title Tpetra: possible UVM issue Tpetra: unnecessary UVM ETI Sep 1, 2023
@csiefer2
Copy link
Member

Harmless, but should be removed.

jhux2 added a commit that referenced this issue Aug 12, 2024
@jhux2 jhux2 added this to Tpetra Aug 12, 2024
@jhux2 jhux2 moved this to Backlog in Tpetra Aug 12, 2024
@jhux2
Copy link
Member Author

jhux2 commented Aug 14, 2024

FHT instantiated on `<Cuda, CudaUVM> is needed even to build Tpetra's own tests. I'm closing this as invalid/wontfix.

@jhux2 jhux2 closed this as completed Aug 14, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Tpetra Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: Tpetra type: bug The primary issue is a bug in Trilinos code or tests
Projects
Status: Done
Development

No branches or pull requests

3 participants