Chapter 11.3 : Compilation



Appelons notre script de compilation :

./singularity_run_fedora38.sh

Used machine is Linux pierre-Precision-7670 5.19.0-45-generic #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20 x86_64 x86_64 x86_64 GNU/Linux

Remove existing directory XXX/TestRangeViewCartesianProduct/build_cmake_pierre-Precision-7670

BUILD_DIR = 'XXX/TestRangeViewCartesianProduct/build_cmake_pierre-Precision-7670'

-- The C compiler identification is GNU 13.1.1

-- The CXX compiler identification is GNU 13.1.1

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /usr/bin/gcc - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/g++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Configuring done (1.3s)

-- Generating done (0.0s)

-- Build files have been written to: /build

[ 50%] Building CXX object CMakeFiles/test_cartesian_product.dir/main.cpp.o

[100%] Linking CXX executable test_cartesian_product

[100%] Built target test_cartesian_product

n = 0, m = 0

n = 0, m = 1

n = 0, m = 2

n = 0, m = 3

n = 0, m = 4

n = 1, m = 0

n = 1, m = 1

n = 1, m = 2

n = 1, m = 3

n = 1, m = 4

vecInput = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,

vecOutput = 0, 5, 1, 6, 2, 7, 3, 8, 4, 9,



Voilà, notre test fonctionne.