This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gpuCI CPU-only script, based on RMM's gpuCI scripts.
- Loading branch information
1 parent
5434e18
commit b59d1db
Showing
2 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
thrust/system/cuda/detail/.gitignore | ||
*.bash | ||
*.log | ||
.p4config | ||
run | ||
build* | ||
doc/html | ||
discrete_voronoi.pgm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2018-2020 NVIDIA Corporation | ||
|
||
################################# | ||
# Thrust CPU-only script for CI # | ||
################################# | ||
|
||
set -e | ||
|
||
# Logger function for build status output | ||
function logger() { | ||
echo -e "\n>>>> ${@}\n" | ||
} | ||
|
||
# Set path and build parallel level | ||
export PATH=/usr/local/cuda/bin:${PATH} | ||
|
||
# Set home to the job's workspace. | ||
export HOME=${WORKSPACE} | ||
|
||
# Switch to project root; also root of repo checkout. | ||
cd ${WORKSPACE} | ||
|
||
# If it's a nightly build, append current YYMMDD to version. | ||
if [[ "${BUILD_MODE}" = "branch" ]] ; then | ||
export VERSION_SUFFIX=`date +%y%m%d` | ||
fi | ||
|
||
# The Docker image sets up `c++` and `cu++`. | ||
CMAKE_FLAGS="-DCMAKE_CXX_COMPILER=c++ -DCMAKE_CUDA_COMPILER=cu++" | ||
|
||
# If it's a nightly build, build all configurations. | ||
if [[ "${BUILD_MODE}" = "branch" ]] ; then | ||
CMAKE_FLAGS="${CMAKE_FLAGS} -DTHRUST_MULTICONFIG_WORKLOAD=FULL" | ||
fi | ||
|
||
################################################################################ | ||
# SETUP - Check environment. | ||
################################################################################ | ||
|
||
logger "Get env..." | ||
env | ||
|
||
logger "Check versions..." | ||
c++ --version | ||
cu++ --version | ||
|
||
################################################################################ | ||
# BUILD - Build Thrust examples and tests. | ||
################################################################################ | ||
|
||
mkdir build | ||
cd build | ||
|
||
logger "Configure Thrust..." | ||
cmake ${CMAKE_OPTIONS} .. | ||
|
||
logger "Build Thrust..." | ||
cmake --build . -j | ||
|
||
################################################################################ | ||
# TEST - Run Thrust CPU-only examples and tests. | ||
################################################################################ | ||
|
||
logger "Test Thrust (CPU-only)..." | ||
ctest -E "^cub|^thrust.*cuda" | ||
|