Unverified Commit e9965162 authored by Yuting Jiang's avatar Yuting Jiang Committed by GitHub
Browse files

Benchmarks: Build Pipeline - Revise path of installing cmake projects (#83)

* Unify SB_MICRO_PATH and SB_MICRO_LIB

* fix bug of lib path
parent 1652524a
...@@ -20,13 +20,13 @@ steps: ...@@ -20,13 +20,13 @@ steps:
make postinstall make postinstall
displayName: Install dependencies displayName: Install dependencies
- script: | - script: |
SB_MICRO_PATH=$PWD/bin make cppbuild SB_MICRO_PATH=$PWD make cppbuild
displayName: Build benchmarks displayName: Build benchmarks
- script: | - script: |
python3 setup.py lint python3 setup.py lint
displayName: Run code lint displayName: Run code lint
- script: | - script: |
SB_MICRO_PATH=$PWD/bin python3 setup.py test SB_MICRO_PATH=$PWD python3 setup.py test
displayName: Run unit tests displayName: Run unit tests
timeoutInMinutes: 10 timeoutInMinutes: 10
- script: | - script: |
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
# Licensed under the MIT License # Licensed under the MIT License
SB_MICRO_PATH="${SB_MICRO_PATH:-/usr/local/bin}" SB_MICRO_PATH="${SB_MICRO_PATH:-/usr/local}"
SB_MICRO_LIB="${SB_MICRO_LIB:-/usr/local/lib}"
for dir in micro_benchmarks/*/ ; do for dir in micro_benchmarks/*/ ; do
if [ -f $dir/CMakeLists.txt ]; then if [ -f $dir/CMakeLists.txt ]; then
......
...@@ -8,4 +8,4 @@ include(../cuda_common.cmake) ...@@ -8,4 +8,4 @@ include(../cuda_common.cmake)
add_executable(kernel_launch_overhead cuda_kernel_launch.cu) add_executable(kernel_launch_overhead cuda_kernel_launch.cu)
set_property(TARGET kernel_launch_overhead PROPERTY CUDA_ARCHITECTURES ${NVCC_ARCHS_SUPPORTED}) set_property(TARGET kernel_launch_overhead PROPERTY CUDA_ARCHITECTURES ${NVCC_ARCHS_SUPPORTED})
install (TARGETS kernel_launch_overhead RUNTIME DESTINATION .) install(TARGETS kernel_launch_overhead RUNTIME DESTINATION bin)
...@@ -145,8 +145,10 @@ def _preprocess(self): ...@@ -145,8 +145,10 @@ def _preprocess(self):
return False return False
# Set the environment path. # Set the environment path.
if 'SB_MICRO_PATH' in os.environ: if os.getenv('SB_MICRO_PATH'):
os.environ['PATH'] = os.getenv('SB_MICRO_PATH', '') + os.pathsep + os.getenv('PATH', '') os.environ['PATH'] = os.path.join(os.getenv('SB_MICRO_PATH'), 'bin') + os.pathsep + os.getenv('PATH', '')
os.environ['LD_LIBRARY_PATH'] = os.path.join(os.getenv('SB_MICRO_PATH'),
'lib') + os.pathsep + os.getenv('LD_LIBRARY_PATH', '')
if not self._set_binary_path(): if not self._set_binary_path():
return False return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment