Skip to content

Compile openLB 1.8 in Cluster

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum please send a message via our contact form.

Forums OpenLB General Topics Compile openLB 1.8 in Cluster

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10759
    thanhphatvt
    Participant

    Hello Open LB team,
    I have some problems with open LB 1.8 version. I ran it on our cluster with nvhpc 24.7. But I have problem when run it.
    phat@acmt-gpu:~/openlb/release-1.8.0$ make
    make CXX=’mpic++’ CC=’gcc’ -C external
    make[1]: Entering directory ‘/home/phat/openlb/release-1.8.0/external’
    make -C zlib
    make[2]: Entering directory ‘/home/phat/openlb/release-1.8.0/external/zlib’
    gcc -c -o build/adler32.o ./adler32.c
    gcc -c -o build/crc32.o ./crc32.c
    gcc -c -o build/deflate.o ./deflate.c
    gcc -c -o build/infback.o ./infback.c
    gcc -c -o build/inffast.o ./inffast.c
    gcc -c -o build/inflate.o ./inflate.c
    gcc -c -o build/inftrees.o ./inftrees.c
    gcc -c -o build/trees.o ./trees.c
    gcc -c -o build/zutil.o ./zutil.c
    gcc -c -o build/compress.o ./compress.c
    gcc -c -o build/uncompr.o ./uncompr.c
    gcc -c -o build/gzclose.o ./gzclose.c
    gcc -c -o build/gzlib.o ./gzlib.c
    gcc -c -o build/gzread.o ./gzread.c
    gcc -c -o build/gzwrite.o ./gzwrite.c
    ar rc build//libz.a ./build/adler32.o ./build/crc32.o ./build/deflate.o ./build/infback.o ./build/inffast.o ./build/inflate.o ./build/inftrees.o ./build/trees.o ./build/zutil.o ./build/compress.o ./build/uncompr.o ./build/gzclose.o ./build/gzlib.o ./build/gzread.o ./build/gzwrite.o
    make[2]: Leaving directory ‘/home/phat/openlb/release-1.8.0/external/zlib’
    cp zlib/build/libz.a lib/
    make -C tinyxml2
    make[2]: Entering directory ‘/home/phat/openlb/release-1.8.0/external/tinyxml2’
    mpic++ -c tinyxml2.cpp -o build/tinyxml2.o
    ar rc build/libtinyxml2.a ./build/tinyxml2.o
    make[2]: Leaving directory ‘/home/phat/openlb/release-1.8.0/external/tinyxml2’
    cp tinyxml2/build/libtinyxml2.a lib/
    make[1]: Leaving directory ‘/home/phat/openlb/release-1.8.0/external’
    mpic++ -O3 -std=c++20 -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include -pthread -DPARALLEL_MODE_MPI -DPLATFORM_CPU_SISD -DPLATFORM_GPU_CUDA -fPIC -Isrc/ -c src/communication/mpiManager.cpp -o src/communication/mpiManager.o
    mpic++ -O3 -std=c++20 -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include -pthread -DPARALLEL_MODE_MPI -DPLATFORM_CPU_SISD -DPLATFORM_GPU_CUDA -fPIC -Isrc/ -c src/communication/ompManager.cpp -o src/communication/ompManager.o
    mpic++ -O3 -std=c++20 -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include -pthread -DPARALLEL_MODE_MPI -DPLATFORM_CPU_SISD -DPLATFORM_GPU_CUDA -fPIC -Isrc/ -c src/core/olbInit.cpp -o src/core/olbInit.o
    mpic++ -O3 -std=c++20 -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include -pthread -DPARALLEL_MODE_MPI -DPLATFORM_CPU_SISD -DPLATFORM_GPU_CUDA -fPIC -Isrc/ -c src/core/expr.cpp -o src/core/expr.o
    mpic++ -O3 -std=c++20 -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include -pthread -DPARALLEL_MODE_MPI -DPLATFORM_CPU_SISD -DPLATFORM_GPU_CUDA -fPIC -Isrc/ -c src/io/ostreamManager.cpp -o src/io/ostreamManager.o
    ar rc build/lib/libolbcore.a src/communication/mpiManager.o src/communication/ompManager.o src/core/olbInit.o src/core/expr.o src/io/ostreamManager.o
    phat@acmt-gpu:~/openlb/release-1.8.0$ cd examples/laminar/cavity2d
    phat@acmt-gpu:~/openlb/release-1.8.0/examples/laminar/cavity2d$ make clean
    rm -f tmp/*.* tmp/vtkData/*.* tmp/vtkData/data/*.* tmp/imageData/*.* tmp/imageData/data/*.* tmp/gnuplotData/*.* tmp/gnuplotData/data/*.*
    rm -f cavity2d.o cavity2d.d cavity2d build/olbcuda.o build/olbcuda.cu libolbcuda.so
    phat@acmt-gpu:~/openlb/release-1.8.0/examples/laminar/cavity2d$ make
    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 85: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8 /*/
    ^

    Remark: individual warnings can be suppressed with “–diag_suppress <warning-name>”

    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 132: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8 /*/
    ^

    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 164: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8 /*/
    ^

    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 251: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8/ \ 6 7 8 /*/
    ^

    “../../../src/functors/analytical/indicator/indicatorF2D.h”, line 69: warning: overloaded virtual function “olb::IndicatorF2D<S>::operator() [with S=T]” is only partially overridden in class “olb::IndicatorCuboid2D<T>” [partial_override]
    class IndicatorCuboid2D : public IndicatorF2D<S> {
    ^
    detected during instantiation of class “olb::IndicatorCuboid2D<S> [with S=T]” at line 56 of “cavity2d.cpp”

    “../../../src/core/blockDynamicsMap.h”, line 316: warning: statement is unreachable [code_is_unreachable]
    break;
    ^
    detected during:
    instantiation of “void olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM>::collide() [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 416 of “../../../src/core/blockLattice.hh”
    implicit generation of “olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM>::~ConcreteBlockLattice() noexcept [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 416 of “../../../src/core/blockLattice.hh”
    instantiation of class “olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM> [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 416 of “../../../src/core/blockLattice.hh”
    instantiation of “olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM>::ConcreteBlockLattice(olb::Vector<int, DESCRIPTOR::d>, int) [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 118 of “../../../src/core/platform/dispatch.h”
    instantiation of “CONCRETIZABLE::base_t *olb::constructUsingConcretePlatform<CONCRETIZABLE,ARGS…>(olb::Platform, ARGS &&…) [with CONCRETIZABLE=olb::ConcretizableBlockLattice<T, DESCRIPTOR>, ARGS=<olb::Vector<int32_t, 2U>, int>]” at line 135 of “../../../src/core/superLattice.hh”
    instantiation of “olb::SuperLattice<T, DESCRIPTOR>::SuperLattice(olb::CuboidDecomposition<T, DESCRIPTOR::d> &, olb::LoadBalancer<T> &, unsigned int) [with T=T, DESCRIPTOR=DESCRIPTOR]” at line 101 of “../../../src/core/superLattice.h”
    instantiation of “olb::SuperLattice<T, DESCRIPTOR>::SuperLattice(olb::SuperGeometry<T, DESCRIPTOR::d> &) [with T=T, DESCRIPTOR=DESCRIPTOR]” at line 266 of “cavity2d.cpp”

    “../../../src/io/xmlReader.h”, line 204: warning: statement is unreachable [code_is_unreachable]
    setWarningsOn(true);
    ^
    detected during instantiation of “olb::util::Timer<T> *olb::util::createTimer(olb::XMLreader &, const olb::UnitConverter<T, DESCRIPTOR> &, size_t) [with T=T, DESCRIPTOR=DESCRIPTOR]” at line 237 of “cavity2d.cpp”

    make: Warning: File ‘cavity2d.d’ has modification time 0.0076 s in the future
    make -C ../../../external
    make[1]: Entering directory ‘/home/phat/openlb/release-1.8.0/external’
    make -C zlib
    make[2]: Entering directory ‘/home/phat/openlb/release-1.8.0/external/zlib’
    make[2]: Nothing to be done for ‘all’.
    make[2]: Leaving directory ‘/home/phat/openlb/release-1.8.0/external/zlib’
    cp zlib/build/libz.a lib/
    make -C tinyxml2
    make[2]: Entering directory ‘/home/phat/openlb/release-1.8.0/external/tinyxml2’
    make[2]: Nothing to be done for ‘all’.
    make[2]: Leaving directory ‘/home/phat/openlb/release-1.8.0/external/tinyxml2’
    cp tinyxml2/build/libtinyxml2.a lib/
    make[1]: Leaving directory ‘/home/phat/openlb/release-1.8.0/external’
    make -C ../../.. core
    make[1]: Entering directory ‘/home/phat/openlb/release-1.8.0’
    make[1]: Nothing to be done for ‘core’.
    make[1]: Leaving directory ‘/home/phat/openlb/release-1.8.0’
    mpic++ -O3 -std=c++20 -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include -pthread -DPARALLEL_MODE_MPI -DPLATFORM_CPU_SISD -DPLATFORM_GPU_CUDA -I../../../src -I../../../external/zlib -I../../../external/tinyxml2 -c -o cavity2d.o cavity2d.cpp
    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 85: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8 /*/
    ^

    Remark: individual warnings can be suppressed with “–diag_suppress <warning-name>”

    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 132: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8 /*/
    ^

    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 164: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8 /*/
    ^

    “../../../src/particles/boundary/../functions/eulerRotation.h”, line 251: warning: nested comment is not allowed [nested_comment]
    \ 6 7 8/ \ 6 7 8 /*/
    ^

    “../../../src/functors/analytical/indicator/indicatorF2D.h”, line 69: warning: overloaded virtual function “olb::IndicatorF2D<S>::operator() [with S=T]” is only partially overridden in class “olb::IndicatorCuboid2D<T>” [partial_override]
    class IndicatorCuboid2D : public IndicatorF2D<S> {
    ^
    detected during instantiation of class “olb::IndicatorCuboid2D<S> [with S=T]” at line 56 of “cavity2d.cpp”

    “../../../src/core/blockDynamicsMap.h”, line 316: warning: statement is unreachable [code_is_unreachable]
    break;
    ^
    detected during:
    instantiation of “void olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM>::collide() [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 416 of “../../../src/core/blockLattice.hh”
    implicit generation of “olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM>::~ConcreteBlockLattice() noexcept [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 416 of “../../../src/core/blockLattice.hh”
    instantiation of class “olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM> [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 416 of “../../../src/core/blockLattice.hh”
    instantiation of “olb::ConcreteBlockLattice<T, DESCRIPTOR, PLATFORM>::ConcreteBlockLattice(olb::Vector<int, DESCRIPTOR::d>, int) [with T=T, DESCRIPTOR=DESCRIPTOR, PLATFORM=olb::Platform::CPU_SISD]” at line 118 of “../../../src/core/platform/dispatch.h”
    instantiation of “CONCRETIZABLE::base_t *olb::constructUsingConcretePlatform<CONCRETIZABLE,ARGS…>(olb::Platform, ARGS &&…) [with CONCRETIZABLE=olb::ConcretizableBlockLattice<T, DESCRIPTOR>, ARGS=<olb::Vector<int32_t, 2U>, int>]” at line 135 of “../../../src/core/superLattice.hh”
    instantiation of “olb::SuperLattice<T, DESCRIPTOR>::SuperLattice(olb::CuboidDecomposition<T, DESCRIPTOR::d> &, olb::LoadBalancer<T> &, unsigned int) [with T=T, DESCRIPTOR=DESCRIPTOR]” at line 101 of “../../../src/core/superLattice.h”
    instantiation of “olb::SuperLattice<T, DESCRIPTOR>::SuperLattice(olb::SuperGeometry<T, DESCRIPTOR::d> &) [with T=T, DESCRIPTOR=DESCRIPTOR]” at line 266 of “cavity2d.cpp”

    “../../../src/io/xmlReader.h”, line 204: warning: statement is unreachable [code_is_unreachable]
    setWarningsOn(true);
    And here is my config:
    CXX := mpic++
    CC := gcc

    CXXFLAGS := -O3
    CXXFLAGS += -std=c++20
    CXXFLAGS += -Xcompiler -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/include

    PARALLEL_MODE := MPI

    PLATFORMS := CPU_SISD GPU_CUDA

    # Compiler to use for CUDA-enabled files
    CUDA_CXX := nvcc
    CUDA_CXXFLAGS := -O3 -std=c++20
    CUDA_LDFLAGS := -L/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/cuda/12.5/lib64 -L/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/REDIST/cuda/12.5/targets/x86_64-linux/lib/stubs/
    CUDA_ARCH := 60

    USE_EMBEDDED_DEPENDENCIES := ON

    #10760
    Adrian
    Keymaster

    What is the problem?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.