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

Kokkos can not complete unit tests with CUDA UVM enabled #23

Closed
piyueh opened this issue Jun 13, 2015 · 3 comments
Closed

Kokkos can not complete unit tests with CUDA UVM enabled #23

piyueh opened this issue Jun 13, 2015 · 3 comments

Comments

@piyueh
Copy link

piyueh commented Jun 13, 2015

Hi,

I'm not sure whether I can post my problems here. If here is not the right place, please let me know, thanks!

I want to build Trilinos (Github version) with MPI + CUDA + OpenMP using the package manager Tribits. It says that I need to enable UVM support in Kokkos in order to use Tpetra. However, if I have -D Kokkos_ENABLE_Cuda_UVM=ON in my configuration file, I can not complete unit tests KokkosCore_UnitTest_Cuda_MPI_1. KokkosCore_UnitTest_Cuda_MPI_1 always crashed at cuda.view_subview_auto_1d_left because of _segmentation fault_ (not because of assertion failure).

I use the wrapper nvcc_wrapper Kokkos provided and parameter sm_35 to compile codes. The version of GCC is 4.9.2. And I'm using CUDA 7. My machine has a Tesla K40c, a Tesla K20c and a GT 720. The operation system is Arch Linux.

I also tried to build Kokkos directly using the generate_makefile.bash instead using Tribits system. I tried to enable UVM by directly passing flag -DKOKKOS_USE_CUDA_UVM to the compiler. The procedure is:

$ cd ${KOKKOS_PATH}
$ mkdir build
$ cd build
$ ../generate_makefile.bash --with-cuda --kokkos-path=${KOKKOS_PATH} --compiler=nvcc_wrapper --cxxflags="-DKOKKOS_USE_CUDA_UVM"
$ make build-test
$ make test

And the test still crashed at cuda.view_subview_auto_1d_left because of segmentation fault.

Did I do anything wrong?

Thanks!

P.S. If I build Kokkos without UVM, every thing works fine. But I won't be able to build Tpetra in this case.

@ipdemes
Copy link

ipdemes commented Jun 13, 2015

Hi Pi-Yueh,

Do you set "CUDA_LAUNCH_BLOCKING=1" before running tests?

@piyueh
Copy link
Author

piyueh commented Jun 14, 2015

Thank you, Irina!
This resolved the problem !
Thank you very much/

@ipdemes
Copy link

ipdemes commented Jun 14, 2015

You are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants