Skip to content

H.Yu

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • in reply to: gpu usage question #7294
    H.Yu
    Participant

    It has been confirmed that an error occurs when using ‘using namespace olb::util’

    in reply to: gpu usage question #7293
    H.Yu
    Participant

    mpicxx –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.1

    in reply to: gpu usage question #7290
    H.Yu
    Participant

    sure 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.

    in reply to: gpu usage question #7288
    H.Yu
    Participant

    After 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.

    in reply to: gpu usage question #7287
    H.Yu
    Participant

    Sorry, 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!

    in reply to: gpu usage question #7286
    H.Yu
    Participant

    cuda 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 cuda

    Second :
    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 –version

    Forth : install cuDNN
    Fifth : check cuDNN

    in reply to: gpu usage question #7285
    H.Yu
    Participant

    Let’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 wsl2

    some 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 30

    in reply to: gpu usage question #7283
    H.Yu
    Participant

    error : 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?

    in reply to: gpu usage question #7282
    H.Yu
    Participant

    Yes 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.

    in reply to: gpu usage question #7277
    H.Yu
    Participant

    The 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’

    • This reply was modified 1 year, 1 month ago by H.Yu.
    • This reply was modified 1 year, 1 month ago by H.Yu.
    in reply to: gpu usage question #7270
    H.Yu
    Participant

    yes i tring to gpu_only.mk
    but same error to occur

    in reply to: gpu usage question #7268
    H.Yu
    Participant

    what is mean ‘case’ ?
    i’m using cylinder3D example and gpu_openmpi.mk

    in reply to: gpu usage question #7262
    H.Yu
    Participant

    I 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’

    in reply to: gpu usage question #7261
    H.Yu
    Participant

    thank you!
    I was suspicious about the different cuda versions of nvcc and nvidia-smi.
    I was able to understand and solve this problem. thank you

    in reply to: gpu usage question #7257
    H.Yu
    Participant

    Thank 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 -lmpi

    second :
    ” nvcc -V ” results : Cuda compilation tools, release 10.1, V10.1.243

    third :
    ” nvidia-smi ” results : CUDA Version: 12.0

    fourth :
    ” #include <thrust/execution_policy.h> ” add

    fifth :
    ” 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 := nvcc

    CXXFLAGS := -O3
    CXXFLAGS += -std=c++17

    PARALLEL_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 := 86

    USE_EMBEDDED_DEPENDENCIES := ON
    “””

    thank you!

Viewing 15 posts - 1 through 15 (of 28 total)