Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

ODOS project

License

NotificationsYou must be signed in to change notification settings

openucx/ODOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Setup environment variables for building and installation of LLVM
export PREFIX=/path/to/install/dir/export BUILDDIR=/path/to/build/dir/
  1. Compile LLVM
cmake -S llvm-project/llvm                          \      -B $BUILDDIR                                  \      -DCMAKE_INSTALL_PREFIX="$PREFIX"              \      -DCMAKE_BUILD_TYPE=Release                    \      -DCMAKE_C_COMPILER="`which clang`"            \      -DCMAKE_CXX_COMPILER="`which clang++`"        \      -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"           \      -DLLVM_BUILD_UTILS=OFF                        \      -DLLVM_ENABLE_PROJECTS="clang"                \      -DGCC_INSTALL_PREFIX="/usr"                   \      -DCLANG_ENABLE_ARCMT=OFF                      \      -DCLANG_ENABLE_STATIC_ANALYZER=OFFcd $BUILDDIR && make -j install
  1. Setup environment variables for building and installation of OpenMPpreferably use the same installation directory and different builddirectory this time
export PREFIX=/path/to/install/dir/export BUILDDIR=/path/to/build/dir/
  1. Compile OpenMP
cmake -S llvm-project/openmp                        \      -B $BUILDDIR                                  \      -DLLVM_ROOT="$PREFIX"                         \      -DCMAKE_INSTALL_PREFIX="$PREFIX"              \      -DCMAKE_BUILD_TYPE=Release                    \      -DCMAKE_C_COMPILER="$PREFIX/bin/clang"        \      -DCMAKE_CXX_COMPILER="$PREFIX/bin/clang++"    \      -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"           \      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON            \      -DOPENMP_ENABLE_LIBOMPTARGET_PROFILING=OFF    \      -DLIBOMP_HAVE_OMPT_SUPPORT=OFF                \      -DLIBOMP_INSTALL_ALIASES=OFF                  \      -DLIBOMPTARGET_ENABLE_DEBUG=OFF               \      -DLLVM_BUILD_TOOLS=ON                         \      -DLLVM_ENABLE_RUNTIMES=openmp                 \      -DDOCA_INCPATH=/path/to/doca/include          \      -DDOCA_LIBPATH=/path/to/doca/libscd $BUILDDIR && make -j install
  1. Compile the DOCA OpenMP Service within DPU:llvm-project/openmp/libomptarget/toos/docaservice/

Run

  1. Run DOCA OpenMP Service on BlueField DPU
  2. Compile application on host
clang -fopenmp -fopenmp-targets=aarch64-unknown-linux ./app.c -o app
  1. Run
./app

Run with pDOCA

  1. Run DOCA OpenMP Service
LD_PRELOAD=`pwd`/install/lib/libpdoca.so ./install/bin/doca-omp-service
  1. Check devices
LD_PRELOAD=`pwd`/install/lib/libpdoca.so ./install/bin/llvm-omp-device-info
  1. Compile application on host
clang -fopenmp -fopenmp-targets=aarch64-unknown-linux ./app.c -o app
  1. Run
LD_PRELOAD=`pwd`/install/lib/libpdoca.so ./app

Note: please make sure that DOCA libraries are included in LD_LIBRARY_PATH. This project supportes DOCA v2.0.2

Citation

If you find this software useful for your research or project, we kindly request that you cite the following paper:

M. Usman, S.Iserte, R. Ferrer, and A. J. Peña, "DPU Offloading Programming with the OpenMP API", in LLVM-HPC23 held in conjunction with SC, Denver, Colorado (USA), Nov. 2023.

Please make sure to appropriately acknowledge and cite the original paper in your work. Proper citation helps to give credit to the authors and supports the research community.

By citing the paper, you contribute to the acknowledgment of the original work and allow others to find the source for further reference. We appreciate your cooperation in citing the paper and hope that it has been valuable to your project or research.

Contact

accelcom@bsc.es


[8]ページ先頭

©2009-2025 Movatter.jp