Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark libs are not installed #423

Open
seanofthemillers opened this issue Mar 12, 2024 · 0 comments
Open

Benchmark libs are not installed #423

seanofthemillers opened this issue Mar 12, 2024 · 0 comments

Comments

@seanofthemillers
Copy link
Contributor

Installing RAJAPerf will install the executable, along with libRAJA and libcamp libraries, but does not include any of the benchmark libs. E.g. using HIP with a shared build

GFX_VERSION=gfx90a \
ROCM_PATH=/opt/rocm \
cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_SHARED_LIBS=ON \
  -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
  -DROCM_ROOT_DIR=$ROCM_PATH \
  -DHIP_ROOT_DIR=$ROCM_PATH/hip \
  -DHIP_PATH=$ROCM_PATH/llvm/bin \
  -DCMAKE_C_COMPILER=$ROCM_PATH/llvm/bin/amdclang \
  -DCMAKE_CXX_COMPILER=$ROCM_PATH/llvm/bin/amdclang++ \
  -DCMAKE_HIP_ARCHITECTURES=$GFX_VERSION \
  -DGPU_TARGETS=$GFX_VERSION \
  -DAMDGPU_TARGETS=$GFX_VERSION \
  -DCMAKE_CXX_FLAGS="-munsafe-fp-atomics" \
  -DBLT_CXX_STD=c++14 \
  -C "$SOURCE_DIR/tpl/RAJA/host-configs/lc-builds/toss4/hip_3_X.cmake" \
  -DCMAKE_PREFIX_PATH="$ROCM_PATH" \
  -DENABLE_MPI=OFF \
  -DENABLE_HIP=ON \
  -DENABLE_OPENMP=ON \
  -DENABLE_CUDA=OFF \
  $SOURCE_DIR
make -j 32 install

Will install an executable that gives:

<path>/install/rajaperf/bin> ./raja-perf.exe 
./raja-perf.exe: error while loading shared libraries: libapps.so: cannot open shared object file: No such file or directory

Looking at the libs directory we have

<path>/install/rajaperf/bin> ls ../lib/
cmake  libcamp.so  libRAJA.so  pkgconfig

The build directory seems to include all the missing libraries

<path>/build/rajaperf/lib> ls
libalgorithm.so  libbasic-kokkos.so  libcamp.so    libcomm.so        libgtest_main.so.1.13.0  libgtest.so.1.13.0  liblcals.so      libRAJA.so           libstream.so
libapps.so       libbasic.so         libcommon.so  libgtest_main.so  libgtest.so              liblcals-kokkos.so  libpolybench.so  libstream-kokkos.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants