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

CMake: Don't rerun source-compilation tests if they've already run #48

Merged
merged 2 commits into from
Mar 3, 2024

Conversation

ZedThree
Copy link
Collaborator

Use CMake module from pFUnit which already implemented this (pfunit #307 and pfunit #320)

Use CMake module from pFUnit which already implemented this
@tclune
Copy link
Member

tclune commented Nov 22, 2021

@ZedThree First - thanks; this will be very convenient. But ... can you redo this as a PR onto develop instead of main? Trying to keep PRs onto main as bugfix only.

As soon as I'm done with proposal season (i.e., next week) I can roll out another release withis.

@ZedThree
Copy link
Collaborator Author

Sorry, I did look for develop first, but it doesn't appear to exist? Do you want me to create develop starting at current main?

Also, I'm not sure why the nvidia build is failing. Here's the error:

nvfortran-Fatal-/opt/nvidia/hpc_sdk/Linux_x86_64/20.11/compilers/bin/tools/fort1 TERMINATED by signal 11
Arguments to /opt/nvidia/hpc_sdk/Linux_x86_64/20.11/compilers/bin/tools/fort1
/opt/nvidia/hpc_sdk/Linux_x86_64/20.11/compilers/bin/tools/fort1 /__w/gFTL-shared/gFTL-shared/build/src/v2/deque/UnlimitedDeque.F90 -debug -x 120 0x200 -opt 0 -terse 1 -inform warn -nostatic -x 19 0x400000 -quad -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp skylake -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/nvidia/hpc_sdk/Linux_x86_64/20.11/compilers/include-gcc70:/opt/nvidia/hpc_sdk/Linux_x86_64/20.11/compilers/include:/usr/lib/gcc/x86_64-linux-gnu/9/include:/usr/local/include:/usr/include/x86_64-linux-gnu:/usr/include -cmdline '+nvfortran /__w/gFTL-shared/gFTL-shared/build/src/v2/deque/UnlimitedDeque.F90 -D_DOUBLE_DEFAULT_KIND=8 -D_DOUBLE_DEFAULT_KIND_IS_REAL64 -D_INT_DEFAULT_KIND=4 -D_INT_DEFAULT_KIND_IS_INT32 -D_ISO_INT16=2 -D_ISO_INT32=4 -D_ISO_INT64=8 -D_ISO_INT8=1 -D_ISO_REAL32=4 -D_ISO_REAL64=8 -D_LOGICAL_DEFAULT_KIND=4 -D_REAL_DEFAULT_KIND=4 -D_REAL_DEFAULT_KIND_IS_REAL32 -I/__w/gFTL-shared/gFTL-shared/build/src/v2/mod -I/__w/gFTL-shared/gFTL-shared/build/extern/gFTL/include/v2 -I/__w/gFTL-shared/gFTL-shared/extern/gFTL/include/v2 -g -Mpreprocess -traceback -Mbounds -Mchkstk -Mallocatable=03 -module mod -fPIC -c -o CMakeFiles/gftl-shared-v2.dir/deque/UnlimitedDeque.F90.o' -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __x86_64 -def __x86_64__ -def __LONG_MAX__=9223372036854775807L -def '__SIZE_TYPE__=unsigned long int' -def '__PTRDIFF_TYPE__=long int' -def __amd64 -def __amd64__ -def __k8 -def __k8__ -def __MMX__ -def __SSE__ -def __SSE2__ -def __SSE3__ -def __SSSE3__ -def __SSE4_1__ -def __SSE4_2__ -def __AVX__ -def __AVX2__ -def __AVX512F__ -def __AVX512VL__ -def __FMA__ -def __XSAVE__ -def __POPCNT__ -def __FXSR__ -idir /__w/gFTL-shared/gFTL-shared/build/src/v2/mod -idir /__w/gFTL-shared/gFTL-shared/build/extern/gFTL/include/v2 -idir /__w/gFTL-shared/gFTL-shared/extern/gFTL/include/v2 -def __PGLLVM__ -def __NVCOMPILER_LLVM__ -def __extension__= -def _DOUBLE_DEFAULT_KIND=8 -def _DOUBLE_DEFAULT_KIND_IS_REAL64 -def _INT_DEFAULT_KIND=4 -def _INT_DEFAULT_KIND_IS_INT32 -def _ISO_INT16=2 -def _ISO_INT32=4 -def _ISO_INT64=8 -def _ISO_INT8=1 -def _ISO_REAL32=4 -def _ISO_REAL64=8 -def _LOGICAL_DEFAULT_KIND=4 -def _REAL_DEFAULT_KIND=4 -def _REAL_DEFAULT_KIND_IS_REAL32 -def __PIC__ -preprocess -freeform -preprocess -x 70 2 -vect 48 -x 54 1 -x 68 0x1 -x 70 0x40000000 -x 70 0x40000000 -x 68 0x1 -x 124 1 -x 195 0x8000 -y 163 0xc0000000 -x 163 0x800000 -x 189 0x10 -x 49 0x1000 -moddir mod -stbfile /tmp/nvfortranrhtZzWynAlL.stb -modexport /tmp/nvfortranzhtlOtlqVGM.cmod -modindex /tmp/nvfortranHhtJPq2JQR5.cmdx -cci /tmp/nvfortranjhtBMZHbKao.cci -output /tmp/nvfortranbhtd2SFw189.ilm
make[2]: *** [src/v2/CMakeFiles/gftl-shared-v2.dir/build.make:778: src/v2/CMakeFiles/gftl-shared-v2.dir/deque/UnlimitedDeque.F90.o] Error 127

@tclune
Copy link
Member

tclune commented Nov 22, 2021

Ah - sorry about that. I was on autopilot and thought this was for pFUnit. develop is not warranted for this layer. I'll take a look at the actual PR in a moment.

@tclune tclune merged commit 7b13e64 into main Mar 3, 2024
12 checks passed
@tclune tclune deleted the cmake-cache-source-compilation-tests branch March 3, 2024 20:23
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

Successfully merging this pull request may close these issues.

2 participants