HPC OpenLB Code Compilation Error
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › HPC OpenLB Code Compilation Error
- This topic has 5 replies, 2 voices, and was last updated 2 years, 7 months ago by Adrian.
-
AuthorPosts
-
January 21, 2022 at 8:00 pm #6261achodankarParticipant
Hello Developers,
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[1]: Entering directory `/olb-1.4r0/examples/laminar/poiseuille2d’
make[2]: Entering directory `/olb-1.4r0′
make[2]: *** No rule to make target/usr/include/c++/9/vector', needed by
build/generic/obj/src/communication/loadBalancer.o’. Stop.
make[2]: Leaving directory `/olb-1.4r0′
make[1]: *** [updatelib] Error 2
make[1]: Leaving directory `/olb-1.4r0/examples/laminar/poiseuille2d’
make: *** [all] Error 2I would appreciate any advice on getting the OpenLB code running on the cluster.
Thank you.
Yours sincerely,
Abhijeet C.
January 24, 2022 at 2:11 pm #6264AdrianKeymasterThis 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 #6273achodankarParticipantHello Adrian,
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.
Thank you.
Abhijeet C.
January 25, 2022 at 2:26 pm #6278AdrianKeymasterWhat kind of errors do you get from the load balancer?
January 25, 2022 at 5:35 pm #6280achodankarParticipantHello Adrian,
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
d/generic/obj/src/communication/loadBalancer.o
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,
from /home/applications/spack/applications/gcc-4.8.5/gcc-8.2.0-sxbf4jq6ghmoybsjlpqz2dm2qbbxzfyn/include/c++/8.2.0/bits/stl_algobase.h:59,
from /home/applications/spack/applications/gcc-4.8.5/gcc-8.2.0-sxbf4jq6ghmoybsjlpqz2dm2qbbxzfyn/include/c++/8.2.0/vector:60,
from ./src/communication/loadBalancer.h:28,
from src/communication/loadBalancer.cpp:25:
/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
y
#include <features.h>
^~~~~~~~~~~~
compilation terminated.
make[2]: *** [build/generic/obj/src/communication/loadBalancer.o] Error 1Thank you.
Yours sincerely,
Abhijeet C.
January 27, 2022 at 10:48 am #6285AdrianKeymasterReading 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.
-
AuthorPosts
- You must be logged in to reply to this topic.