File tree Expand file tree Collapse file tree 3 files changed +12
-22
lines changed
Expand file tree Collapse file tree 3 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,13 @@ include(ExternalProject)
4242include (GNUInstallDirs )
4343
4444# version control info
45- find_package (Git )
46- if (Git_FOUND AND EXISTS "${PROJECT_SOURCE_DIR} /.git" )
47- execute_process (
48- COMMAND git log --pretty=format:%h -n 1
49- OUTPUT_VARIABLE ROCPROFCOMPUTE_GIT_REV
50- OUTPUT_STRIP_TRAILING_WHITESPACE )
51- message (STATUS "Git revision: ${ROCPROFCOMPUTE_GIT_REV} " )
52- set (GIT_CLONE TRUE )
53- else ()
54- set (GIT_CLONE FALSER)
55- endif ()
45+ execute_process (
46+ COMMAND git log --pretty=format:%h -n 1
47+ OUTPUT_VARIABLE ROCPROFCOMPUTE_GIT_REV
48+ OUTPUT_STRIP_TRAILING_WHITESPACE )
49+ message (STATUS "Git revision: ${ROCPROFCOMPUTE_GIT_REV} " )
50+ configure_file (${PROJECT_SOURCE_DIR} /cmake/VERSION.sha.in
51+ ${PROJECT_SOURCE_DIR} /VERSION.sha @ONLY )
5652
5753set (CMAKE_BUILD_TYPE "Release" )
5854if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
@@ -162,12 +158,6 @@ if(LOCALHOST MATCHES "TheraS01|.*\.thera\.amd\.com|thera-hn")
162158 list (POP_BACK CMAKE_MESSAGE_INDENT)
163159endif ()
164160
165- # git versioning file
166- if (${GIT_CLONE} )
167- configure_file (${PROJECT_SOURCE_DIR} /cmake/VERSION.sha.in
168- ${PROJECT_SOURCE_DIR} /VERSION.sha @ONLY )
169- endif ()
170-
171161# Setup testing collateral
172162
173163option (ENABLE_TESTS "Enable compilation of testing collateral" OFF )
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ RUN DEBIAN_FRONTEND=noninteractive TZ="America/Toronto" amdgpu-install --yes --u
4444# Install any dependencies specified in requirements.txt
4545# Run interactive bash shell
4646CMD ["/bin/bash", "-c", "\
47- python3.10 -m pip install -r requirements.txt -r requirements-test.txt \
47+ cd /app/projects/rocprofiler-compute \
48+ && python3.10 -m pip install -r requirements.txt -r requirements-test.txt \
4849 && exec /bin/bash \
4950"]
Original file line number Diff line number Diff line change 11services :
22 customrocmtest : # service name
33 build :
4- context : ../
5- dockerfile : docker/Dockerfile.customrocmtest
4+ context : ../../../
5+ dockerfile : projects/rocprofiler-compute/ docker/Dockerfile.customrocmtest
66 devices :
77 - /dev/kfd
88 - /dev/dri
99 security_opt :
1010 - seccomp:unconfined
1111 volumes :
12- - ../:/app
13- - ../../rocprofiler-sdk:/rocprofiler-sdk
12+ - ../../../:/app
1413 ports :
1514 - 8050:8050
1615 tty : true
You can’t perform that action at this time.
0 commit comments