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

Build kokkos #1055

Closed
YuxinxinChen opened this issue Jul 16, 2021 · 4 comments
Closed

Build kokkos #1055

YuxinxinChen opened this issue Jul 16, 2021 · 4 comments

Comments

@YuxinxinChen
Copy link

YuxinxinChen commented Jul 16, 2021

Hi,

I am trying to use graph coloring (GPU) in kokkos. However, I have a problem config the cmake.

mkdir build & cd build
cmake .. -DCMAKE_CXX_COMPILER=g++ -DKokkos_ROOT=/home/yuxin420/kokkos/kokkos/build -DCMAKE_INSTALL_PREFIX=/home/yuxin420/kokkos/kokkos-kernels/build -DKokkosKernels_REQUIRE_DEVICES=CUDA

But I got an error:

CMake Error at /home/yuxin420/kokkos/kokkos/build/KokkosConfig.cmake:62 (INCLUDE):
  INCLUDE could not find load file:

    /home/yuxin420/kokkos/kokkos/build/KokkosTargets.cmake
Call Stack (most recent call first):
  CMakeLists.txt:88 (FIND_PACKAGE)

Could you give more information on how to build Kokkos-kernel? Thanks

Yuxin

@jennloe
Copy link
Contributor

jennloe commented Jul 17, 2021

Hi Yuxin,
Make sure you have run "make install" for your Kokks build. Then the -DKokkos_ROOT value should point to the Kokkos install location, probably "-DKokkos_ROOT=/home/yuxin420/kokkos/kokkos/install".

Does that fix the problem?

@YuxinxinChen
Copy link
Author

Hi,

Thanks for your reply! I realized Kokkos is different from Kokkos kernel. I have installed kokkos and kokkos-kernel successfully.
I would like to run the GPU graph coloring and I noticed there is one under the perf_test directory. However, after make install kokkos-kernel, the tests under perf_test directory are not compiled and the CMakeList.txt under perf_test can not be run directly.
I would like to know how can I compile the perf_test code and run it. Could you help me with that?
Thanks very much!

-Yuxin

@e10harvey
Copy link
Contributor

Hi,

Thanks for your reply! I realized Kokkos is different from Kokkos kernel. I have installed kokkos and kokkos-kernel successfully.
I would like to run the GPU graph coloring and I noticed there is one under the perf_test directory. However, after make install kokkos-kernel, the tests under perf_test directory are not compiled and the CMakeList.txt under perf_test can not be run directly.
I would like to know how can I compile the perf_test code and run it. Could you help me with that?
Thanks very much!

-Yuxin

Hi Yuxin,

It looks like you need to add KokkosKernels_ENABLE_TESTS:BOOL=ON when configuring kokkos-kernels. You can review the cmake options at https://github.com/kokkos/kokkos-kernels/blob/develop/BUILD.md#kokkos-kernels-cmake-option-listing.

@lucbv
Copy link
Contributor

lucbv commented Jul 19, 2021

@YuxinxinChen based on issue #1056 it seems that you are now able to compile Kokkos Kernels correctly.
I will close this issue and leave the other one open so you get answers on how to enable tests in one place.

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

4 participants