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

where is this LINALG_ENABLE_KOKKOS_DEFAULT set? #99

Open
fnrizzi opened this issue Oct 11, 2021 · 0 comments
Open

where is this LINALG_ENABLE_KOKKOS_DEFAULT set? #99

fnrizzi opened this issue Oct 11, 2021 · 0 comments

Comments

@fnrizzi
Copy link
Contributor

fnrizzi commented Oct 11, 2021

@crtrott @mhoemmen

I was trying to build using Kokkos, using this cmake line:
when I configure, I use:

    cmake \
	-Dmdspan_DIR=${MDSPAN_PFX}/lib/cmake/mdspan \
	-DLINALG_ENABLE_TESTS=On \
	-DLINALG_ENABLE_EXAMPLES=On \
	-DCMAKE_BUILD_TYPE="${btype}" \
	\
	-DLINALG_ENABLE_KOKKOS=On \
	-DKokkos_DIR=${KOKKOS_DIR} \
	-DKokkosKernels_DIR=${KOKKOS_KER_DIR} \
	\
	-DCMAKE_VERBOSE_MAKEFILE=On \
	-DCMAKE_INSTALL_PREFIX=../stdblas-install \
	-DGTEST_ROOT=../install_gtest \
	../stdBLAS/

But that causes a problem, because in this file: linalg_execpolicy_mapper.hpp we have:

#if defined(LINALG_ENABLE_KOKKOS) && defined(LINALG_ENABLE_KOKKOS_DEFAULT)
#include <experimental/__p1673_bits/kokkos-kernels/exec_policy_wrapper_kk.hpp>
#endif

and since LINALG_ENABLE_KOKKOS_DEFAULT is NOT set at all, I get a compile error because that header is not included.
If I change that to || it works.

But was wondering: what is the role of LINALG_ENABLE_KOKKOS_DEFAULT? Is that supposed to be set by user? Or what?

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

1 participant