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

Discover the test right before running the tests #147

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

tpadioleau
Copy link
Member

This allows to compile the tests with a GPU backend while not having any GPU on the system. Otherwise we see errors like:

/local/home/tpadiole/Codes/kokkos-fft/build-cuda/common/unit_test/unit-tests-kokkos-fft-common: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory
CMake Error at /local/home/tpadiole/spack-0.22.2/opt/spack/linux-ubuntu20.04-icelake/gcc-10.5.0/cmake-3.27.9-6wmnwemkvfflvaks6uiznf4lwwgykneb/share/cmake-3.27/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.

    Path: '/local/home/tpadiole/Codes/kokkos-fft/build-cuda/common/unit_test/unit-tests-kokkos-fft-common'
    Result: 127
    Output:
      

Call Stack (most recent call first):
  /local/home/tpadiole/spack-0.22.2/opt/spack/linux-ubuntu20.04-icelake/gcc-10.5.0/cmake-3.27.9-6wmnwemkvfflvaks6uiznf4lwwgykneb/share/cmake-3.27/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)


gmake[2]: *** [common/unit_test/CMakeFiles/unit-tests-kokkos-fft-common.dir/build.make:235: common/unit_test/unit-tests-kokkos-fft-common] Error 1
gmake[2]: *** Deleting file 'common/unit_test/unit-tests-kokkos-fft-common'
gmake[1]: *** [CMakeFiles/Makefile2:938: common/unit_test/CMakeFiles/unit-tests-kokkos-fft-common.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

@yasahi-hpc
Copy link
Collaborator

LGTM

@yasahi-hpc yasahi-hpc merged commit d1d0ada into kokkos:main Oct 2, 2024
20 checks passed
@tpadioleau tpadioleau deleted the allow-gpu-cross-compilation branch October 2, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants