File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ ENV PATH=${PATH}:/opt/openmpi/bin:$AOMP/bin
45
45
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/openmpi/lib:$AOMP/lib
46
46
ENV OMPI_CC=$AOMP/bin/clang
47
47
48
+ # Install Omnitrace, an AMDResearch profiling tool which is de facto the best profiler from AMD
49
+ RUN wget https://github.com/AMDResearch/omnitrace/releases/download/v1.7.3/omnitrace-1.7.3-ubuntu-20.04-ROCm-50100-PAPI-OMPT-Python3.sh -q
50
+ RUN mv omnitrace-1.7.3-ubuntu-20.04-ROCm-50100-PAPI-OMPT-Python3.sh omnitrace-installer.sh && \
51
+ chmod +x omnitrace-installer.sh && \
52
+ mkdir -p /opt/omnitrace && \
53
+ mv omnitrace-installer.sh /opt/omnitrace && \
54
+ cd /opt/omnitrace && \
55
+ ./omnitrace-installer.sh --skip-license && \
56
+ cd -
57
+
48
58
# Devito env
49
59
ENV DEVITO_ARCH="aomp"
50
60
ENV DEVITO_PLATFORM="amdgpuX"
Original file line number Diff line number Diff line change @@ -15,4 +15,9 @@ if [[ -z "${DEPLOY_ENV}" ]]; then
15
15
./codecov -t -t ${CODECOV_TOKEN} -F " ${DEVITO_ARCH} -${DEVITO-PLATFORM} "
16
16
else
17
17
exec " $@ "
18
- fi
18
+ fi
19
+
20
+ if [[ -n " ${ROCM_VERSION} " ]]; then
21
+ echo " sourcing Omnitrace"
22
+ source /opt/omnitrace/share/omnitrace/setup-env.sh
23
+ fi
You can’t perform that action at this time.
0 commit comments