CMake support#664
Conversation
|
@kostrzewa and @chaoos :
|
cc527c1 to
c86f934
Compare
2d50b54 to
8f39dd2
Compare
There was a problem hiding this comment.
Even with the changes from my suggestions below, the build still fails for me with various compiler errors and warnings, like e.g.:
/home/roman/projects/tmp/tmLQCD/src/lib/io/gauge_read_binary.c: In function ‘read_binary_gauge_data’:
/home/roman/projects/tmp/tmLQCD/src/lib/io/gauge_read_binary.c:72:17: error: ‘g_cart_grid’ undeclared (first use in this function); did you mean ‘g_cart_id’?
72 | MPI_Barrier(g_cart_grid);
| ^~~~~~~~~~~
| g_cart_id
/home/roman/projects/tmp/tmLQCD/src/lib/io/gauge_read_binary.c:72:17: note: each undeclared identifier is reported only once for each function it appears in
/home/roman/projects/tmp/tmLQCD/src/lib/io/utils_construct_writer.c: In function ‘construct_writer’:
/home/roman/projects/tmp/tmLQCD/src/lib/io/utils_construct_writer.c:17:28: error: ‘g_cart_grid’ undeclared (first use in this function); did you mean ‘g_cart_id’?
17 | status = MPI_File_open(g_cart_grid, filename,
| ^~~~~~~~~~~
| g_cart_id
One can put these variables as extern, but then at link time it fail to resolve with undefined reference to g_cart_grid'`.
Apologies, if I build lemon with the new cmake system as static library, I can build tmlqcd properly. |
|
Sorry, the current version does not support the lemon configure build as the lemon cmake build system makes this more reliable. I need to check if I generate a pkg-config file for lemon |
| endif() | ||
|
|
||
| # check for fftw3 (rely on pkgconfig). | ||
| if(TM_USE_FFTW) |
|
remove LAPH_ev.c |
| set_target_properties(hmc PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 1) | ||
|
|
||
| # define a library and add the dependencies | ||
| target_link_libraries( |
|
please add a couple of example cmake calls to a |
- Restored hopping.h - Rename hmc with tmlqcd - Fix TM_USE_DDalphaAMG when necessary - Remove header guards in git_hash.c
Co-authored-by: chaoos <chaoos@users.noreply.github.com>
- Restored hopping.h - Rename hmc with tmlqcd - Fix TM_USE_DDalphaAMG when necessary - Remove header guards in git_hash.c - Update Spack package
…ge.py Co-authored-by: chaoos <chaoos@users.noreply.github.com>
bf2b048 to
b33899b
Compare
|
cscs-ci run default |
set version to 6.1.0
use back-ticks for closing code sections
tmlQCD can be compiled with CMake. So far the build supports