H.Yu
Forum Replies Created
-
AuthorPosts
-
H.YuParticipant
It has been confirmed that an error occurs when using ‘using namespace olb::util’
H.YuParticipantmpicxx –showme:compile : -l/usr/local/include -pthread
mpicxx –showme:link : -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,–enable-new-dtags -L/usr/local/lib -lmpi
mpi –version : OpenMPI 4.1.1H.YuParticipantsure but i have problem
I tried to upload the entire error log from before, but a 403 error occurred when specific content was entered, so I inquired about the content to Tim.
H.YuParticipantAfter changing the contents of config.mk to cpu and gpu, I proceeded with “make clean; make”, then moved to the example folder, and there was a previously made content, so I proceeded with “make clean; make” in the example folder.
After that If i do make, it was confirmed that the same error occurs in cylinder 3d and gpu.H.YuParticipantSorry, there is an error in the test results I said before.
Test 1: Run the example using the .mk file that uses gpu (gpu_only, gpu_openmpi) >> error!
Test 2: Run problematic code using .mk file that uses cpu (cpu_sisd, cpu_openmpi) >> Normal operation
Test 3: Run problematic code using .mk file the uese gpu (gpu_only, gpu_openmpi) >> error!H.YuParticipantcuda install procedure
First :
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.3.0/local_installers/cuda-repo-wsl-ubuntu-11-3-local_11.3.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-3-local_11.3.0-1_amd64.deb
sudo apt-key add /var/cuda-repo-wsl-ubuntu-11-3-local/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cudaSecond :
export PATH=/usr/local/cuda-11.3/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}Third :
check nvcc –versionForth : install cuDNN
Fifth : check cuDNNH.YuParticipantLet’s attach the outputted phrase when ‘make’ is executed.
The “(i.e. the __host__ __device__ called from __host__ warnings, hidden by the default flags).” Can you explain that in a bit more detail?
nvcc version : 11.3
g++ version : 9.4.0
ubuntu version : 20.04
i’m using wsl2some test results
Test 1: Run the example using the .mk file that uses gpu (gpu_only, gpu_openmpi) >> Normal operation
Test 2: Run problematic code using .mk file that uses cpu (cpu_sisd, cpu_openmpi) >> Normal operation
Test 3: Run problematic code using .mk file the uese gpu (gpu_only, gpu_openmpi) >> error!similar error
“https://www.openlb.net/forum/topic/issues-compiling-thermal-examples-with-gpu/” line 20 ~ line 30H.YuParticipanterror : call of overloaded log, log1p, exp, sin, cos, round …etc..
This is a problem that occurs in several functions in the cuda folder when compiling. Do I need to reinstall CUDA?
H.YuParticipantYes this is not just a warning.
Compilation is not completed due to this error. Also, the problem only occurs when using the GPU.In addition, I showed ‘sin ( double & ) is ambiguous’ as an example, but it displays a lot of errors besides that content.
One curious thing is that the problem that occurs in the 74th line and the 230th line mentioned above works normally when proceeding with the example with the same content.
H.YuParticipantThe 403 error keeps popping up, so the response is delayed.
I checked that some of them work, but when I try to attach the error contents, I get a 403 error.nvcc version – 11.3
i tring to ‘make’
error:
‘/stlReader.h(214): warning #611-D: overloaded virtual function “olb::IndicatorF3D<S>::distance [with S=double]” is only partially overridden in class “olb::STLreader<T>”
detected during instantiation of class “olb::STLreader<T> [with T=T]”
naca4412_turb.cpp(74): here’‘superLatticeRefinementMetricF3D.h(72): warning #997-D: overloaded function “olb::GenericF<T, S>::operator() [with T=T, S=int]” is hidden by “olb::SuperLatticeRefinementMetricKnudsen3D<T, DESCRIPTOR>::operator() [with T=T, DESCRIPTOR=DESCRIPTOR]” — virtual function override intended? ‘
‘detected during instantiation of class “olb::SuperLatticeRefinementMetricKnudsen3D<T, DESCRIPTOR> [with T=T, DESCRIPTOR=DESCRIPTOR]”
naca4412_turb.cpp(230): here’H.YuParticipantyes i tring to gpu_only.mk
but same error to occurH.YuParticipantwhat is mean ‘case’ ?
i’m using cylinder3D example and gpu_openmpi.mkH.YuParticipantI have additional questions
I don’t know if it’s a problem with OpenLB
But, I when I use gpu Some errors occur when I do ‘make’ what is this case?In file included from /usr/local /cuda- 11.3 … math_function.h
–
–
–
Error: call of overloaded – sin ( double & ) is ambiguous
a=sin(a);
I get tons of ‘error : call of overloaded’H.YuParticipantthank you!
I was suspicious about the different cuda versions of nvcc and nvidia-smi.
I was able to understand and solve this problem. thank youH.YuParticipantThank you !
I’m using 3090Ti
first :
” mpicxx –showme:link ” results : -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,–enable-new-dtags -L/usr/local/lib -lmpisecond :
” nvcc -V ” results : Cuda compilation tools, release 10.1, V10.1.243third :
” nvidia-smi ” results : CUDA Version: 12.0fourth :
” #include <thrust/execution_policy.h> ” addfifth :
” gpu_only.mk ” result : same error “value c++17 is not defined for std..”sixth :
The file name in the config folder was changed to config.mk and used.
code
“””
CXX := nvcc
CC := nvccCXXFLAGS := -O3
CXXFLAGS += -std=c++17PARALLEL_MODE := MPI
MPIFLAGS := -lmpi_cxx -lmpi
PLATFORMS := CPU_SISD GPU_CUDA
# for e.g. RTX 30* (Ampere), see table in
rules.mk
for other options
CUDA_ARCH := 86USE_EMBEDDED_DEPENDENCIES := ON
“””thank you!
-
AuthorPosts