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

DLAF_WITH_PRECOMPILED_HEADERS=on fails after introduction of the C API #950

Closed
RMeli opened this issue Aug 10, 2023 · 2 comments
Closed
Labels
Type:Bug Something isn't working

Comments

@RMeli
Copy link
Member

RMeli commented Aug 10, 2023

Reported by @albestro:

ialberto@daint101:/project/csstaff/ialberto/workspace/dla-future.master/build-gpu> cat ./configure.sh
CC=cc CXX=CC cmake ..\
  -DCMAKE_EXPORT_COMPILE_COMMANDS=on \
  -DCMAKE_BUILD_TYPE=Release\
  -DDLAF_WITH_PRECOMPILED_HEADERS=on\
  -DDLAF_WITH_MKL=on\
  -DDLAF_WITH_CUDA=on\
  -DDLAF_MPI_PRESET=slurm\
  -DMPIEXEC_NUMCORES=24\
  -DDLAF_TEST_RUNALL_WITH_MPIEXEC=on $@
ialberto@daint101:/project/csstaff/ialberto/workspace/dla-future.master/build-gpu> ./configure.sh
...
-- Configuring done (18.2s)
CMake Error in test/unit/c_api/eigensolver/CMakeLists.txt:
  Unable to resolve full path of PCH-header
  '/project/csstaff/ialberto/workspace/dla-future.master/build-gpu/src/CMakeFiles/dlaf.pch_exe.dir/cmake_pch.h'
  assigned to target test_eigensolver_c_api, although its path is supposed to
  be known!


CMake Error in test/unit/c_api/factorization/CMakeLists.txt:
  Unable to resolve full path of PCH-header
  '/project/csstaff/ialberto/workspace/dla-future.master/build-gpu/src/CMakeFiles/dlaf.pch_exe.dir/cmake_pch.h'
  assigned to target test_cholesky_c_api, although its path is supposed to be
  known!


CMake Error in test/unit/c_api/grid/CMakeLists.txt:
  Unable to resolve full path of PCH-header
  '/project/csstaff/ialberto/workspace/dla-future.master/build-gpu/src/CMakeFiles/dlaf.pch_exe.dir/cmake_pch.h'
  assigned to target test_grid_c_api, although its path is supposed to be
  known!


-- Generating done (2.8s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
ialberto@daint101:/project/csstaff/ialberto/workspace/dla-future.master/build-gpu> find . -name "cmake_pch.*"
./src/CMakeFiles/dlaf.pch_exe.dir/cmake_pch.hxx
./src/CMakeFiles/dlaf.pch_exe.dir/cmake_pch.hxx.cxx
./src/CMakeFiles/dlaf.pch_lib.dir/cmake_pch.hxx
./src/CMakeFiles/dlaf.pch_lib.dir/cmake_pch.hxx.cxx
@msimberg
Copy link
Collaborator

Relevant stackoverflow post: https://stackoverflow.com/questions/68735830/cmake-precompiled-headers-issue-with-mixed-c-c-project.

@RMeli RMeli added the Type:Bug Something isn't working label Aug 11, 2023
@msimberg
Copy link
Collaborator

Fixed by #955.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants