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:
make postinstall
displayName: Install dependencies
- script: |
SB_MICRO_PATH=$PWD/bin make cppbuild
SB_MICRO_PATH=$PWD make cppbuild
displayName: Build benchmarks
- script: |
python3 setup.py lint
displayName: Run code lint
- script: |
SB_MICRO_PATH=$PWD/bin python3 setup.py test
SB_MICRO_PATH=$PWD python3 setup.py test
displayName: Run unit tests
timeoutInMinutes: 10
- script: |
......
......@@ -4,8 +4,7 @@
# Licensed under the MIT License
SB_MICRO_PATH="${SB_MICRO_PATH:-/usr/local/bin}"
SB_MICRO_LIB="${SB_MICRO_LIB:-/usr/local/lib}"
SB_MICRO_PATH="${SB_MICRO_PATH:-/usr/local}"
for dir in micro_benchmarks/*/ ; do
if [ -f $dir/CMakeLists.txt ]; then
......
......@@ -8,4 +8,4 @@ include(../cuda_common.cmake)
add_executable(kernel_launch_overhead cuda_kernel_launch.cu)
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):
return False
# Set the environment path.
if 'SB_MICRO_PATH' in os.environ:
os.environ['PATH'] = os.getenv('SB_MICRO_PATH', '') + os.pathsep + os.getenv('PATH', '')
if os.getenv('SB_MICRO_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():
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