forked from sandialabs/omega_h
-
Notifications
You must be signed in to change notification settings - Fork 10
Building and Running with EGADSLite CUDA
Cameron Smith edited this page Feb 16, 2022
·
5 revisions
For SCOREC RHEL7 systems
module load gcc mpich cmake cuda/10.2
git clone git@github.com:LoicMarechal/libMeshb.git
cmake -S ./libMeshb -B buildLibMeshb -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=$PWD/buildLibMeshb/install
cmake --build buildLibMeshb --target install -j8
git clone git@github.com:SCOREC/egadsliteCuda.git
cmake -S ./egadsliteCuda -B buildEGLcuda -DCMAKE_CUDA_ARCHITECTURES=75 -DCMAKE_INSTALL_PREFIX=$PWD/buildEGLcuda/install
cmake --build buildEGLcuda --target install -j8
git clone -b cws/egadsLiteCuda git@github.com:SCOREC/omega_h.git
cmake -S omega_h -B buildOmegah \
-DCMAKE_INSTALL_PREFIX=$PWD/buildOmegah/install \
-DCMAKE_PREFIX_PATH="$PWD/buildLibMeshb/install;$PWD/buildEGLcuda/install" \
-DBUILD_SHARED_LIBS=off \
-DOmega_h_USE_MPI=off \
-DOmega_h_USE_CUDA=on \
-DCMAKE_CUDA_HOST_COMPILER=g++ \
-DCMAKE_CUDA_ARCHITECTURES=75 \
-DOmega_h_USE_libMeshb=on \
-DBUILD_TESTING=ON \
-DOmega_h_USE_EGADSlite=on
cmake --build buildOmegah -j8
git clone git@github.com:UGAWG/adapt-benchmarks.git
cd adapt-benchmarks/cone-cone
../../buildOmegah/src/egads_lite_adapt_test --model cone-cone.step cone-cone.meshb out.meshb
reading in cone-cone.meshb
computing metric tags
limited gradation in 3 steps
computing minimum quality
reading in cone-cone.step
allocating new context
allocating new strings
copying strings
have new context
CUDA Error: invalid argument, in '/space/cwsmith/testOmegahEgads/egadsliteCuda/lite/liteBase.c', line 373
CUDA Error: invalid argument, in '/space/cwsmith/testOmegahEgads/egadsliteCuda/lite/liteBase.c', line 373
EGADS Error: Not a EGADS Lite file!
assertion nbodies == 1 failed at /space/cwsmith/testOmegahEgads/omega_h/src/Omega_h_egads_lite.cpp +96
Aborted (core dumped)