HPC OpenLB Code Compilation Error
January 21, 2022 at 8:00 pm #6261
I am having issues running the OpenLB code on the cluster. To start, I tried compiling the code on a single node. After running the make command, I get the following error:
make: Entering directory `/olb-1.4r0/examples/laminar/poiseuille2d’
make: Entering directory `/olb-1.4r0′
make: *** No rule to make target
/usr/include/c++/9/vector', needed bybuild/generic/obj/src/communication/loadBalancer.o’. Stop.
make: Leaving directory `/olb-1.4r0′
make: *** [updatelib] Error 2
make: Leaving directory `/olb-1.4r0/examples/laminar/poiseuille2d’
make: *** [all] Error 2
I would appreciate any advice on getting the OpenLB code running on the cluster.
Abhijeet C.January 24, 2022 at 2:11 pm #6264
This looks like an issue with your compiler environment. What compiler are you using and how did you load it into the environment? Does a simple C++ test program compile using this setup?January 24, 2022 at 7:33 pm #6273
Openlb runs properly when I run it on the login server. I use the make and mpirun commands, and it spits out the results. However, when I run the batch script, it starts giving me errors related to loadbalancer. If I include make cleanbuild in the script, then the error changes accordingly.
I am unable to post the batch script since the forum is blocking me, when I try to post it.
Abhijeet C.January 25, 2022 at 2:26 pm #6278
What kind of errors do you get from the load balancer?January 25, 2022 at 5:35 pm #6280
Here is the error:
mpic++ -DPARALLEL_MODE_MPI -O3 -Wall -march=native -mtune=native -std=c++14 -DTIXML_USE_STL -I./src -I./src/ -I./src/external -I./src/external/zlib -c src/communication/loadBalancer.cpp -o buil
In file included from /home/applications/spack/applications/gcc-4.8.5/gcc-8.2.0-sxbf4jq6ghmoybsjlpqz2dm2qbbxzfyn/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/c++config.h:508,
/home/applications/spack/applications/gcc-4.8.5/gcc-8.2.0-sxbf4jq6ghmoybsjlpqz2dm2qbbxzfyn/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or director
make: *** [build/generic/obj/src/communication/loadBalancer.o] Error 1
Abhijeet C.January 27, 2022 at 10:48 am #6285
Reading through you initial post again – is there a reason for not using the executable you built on the login node also on the compute node? The compilation errer point to e.g. some module missing there that is (probably loaded by default in this case) available on the login node.
- You must be logged in to reply to this topic.