@@ -275,7 +275,7 @@ function install_caffe2() {
275
275
CMAKE_ARGS+=(" -DCUDA_ARCH_NAME='Maxwell'" )
276
276
fi
277
277
278
- if [[ $( which ccache | wc -c) -ne 0 ]]; then
278
+ if [[ -L ${CCACHE_WRAPPER_DIR} /nvcc && $( $( readlink ${CCACHE_WRAPPER_DIR} /nvcc ) --version | grep ccache | wc -c) -ne 0 ]]; then
279
279
CMAKE_ARGS+=(" -DCUDA_NVCC_EXECUTABLE=${CCACHE_WRAPPER_DIR} /nvcc" )
280
280
fi
281
281
@@ -467,7 +467,7 @@ function install_halide() {
467
467
}
468
468
469
469
if ! test -z $gflags || ! test -z $all ; then
470
- if [[ $( find $CONDA_PREFIX -name libgflags.so) ]]; then
470
+ if [[ ! -z " $CONDA_PREFIX " && $( find $CONDA_PREFIX -name libgflags.so) ]]; then
471
471
echo " gflags found"
472
472
else
473
473
echo " no files found"
@@ -476,7 +476,7 @@ if ! test -z $gflags || ! test -z $all; then
476
476
fi
477
477
478
478
if ! test -z $glog || ! test -z $all ; then
479
- if [[ $( find $CONDA_PREFIX -name libglog.so) ]]; then
479
+ if [[ ! -z " $CONDA_PREFIX " && $( find $CONDA_PREFIX -name libglog.so) ]]; then
480
480
echo " glog found"
481
481
else
482
482
echo " no files found"
494
494
495
495
if ! test -z $caffe2 || ! test -z $all ; then
496
496
if [ " $WITH_CAFFE2 " == " ON" ]; then
497
- if [[ $( find $CONDA_PREFIX -name libcaffe2_gpu.so) ]]; then
497
+ if [[ ! -z " $CONDA_PREFIX " && $( find $CONDA_PREFIX -name libcaffe2_gpu.so) ]]; then
498
498
echo " caffe2 found"
499
499
else
500
500
echo " no files found"
@@ -504,7 +504,7 @@ if ! test -z $caffe2 || ! test -z $all ; then
504
504
fi
505
505
506
506
if ! test -z $isl || ! test -z $all ; then
507
- if [[ $( find $CONDA_PREFIX -name libisl.so) ]]; then
507
+ if [[ ! -z " $CONDA_PREFIX " && $( find $CONDA_PREFIX -name libisl.so) ]]; then
508
508
echo " isl found"
509
509
else
510
510
echo " no files found"
@@ -517,7 +517,7 @@ if ! test -z $dlpack || ! test -z $all; then
517
517
fi
518
518
519
519
if ! test -z $halide || ! test -z $all ; then
520
- if [[ $( find $CONDA_PREFIX -name libHalide.so) ]]; then
520
+ if [[ ! -z " $CONDA_PREFIX " && $( find $CONDA_PREFIX -name libHalide.so) ]]; then
521
521
echo " Halide found"
522
522
else
523
523
echo " no files found"
0 commit comments