Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro committed Jul 28, 2023
1 parent bc5d2b2 commit 25b399e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/config.linux
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ function get_build_configs() {
BUILD_CONFIGS="FF_CUDA_ARCH=${FF_CUDA_ARCH} CUDNN_DIR=${CUDNN_DIR} CUDA_DIR=${CUDA_DIR} NCCL_DIR=${NCCL_DIR} FF_USE_PYTHON=${FF_USE_PYTHON} FF_GASNET_CONDUIT=${FF_GASNET_CONDUIT} FF_UCX_URL=${FF_UCX_URL} FF_LEGION_NETWORKS=${FF_LEGION_NETWORKS} FF_BUILD_ALL_EXAMPLES=${FF_BUILD_ALL_EXAMPLES} FF_BUILD_UNIT_TESTS=${FF_BUILD_UNIT_TESTS} FF_USE_PREBUILT_NCCL=${FF_USE_PREBUILT_NCCL} FF_USE_PREBUILT_LEGION=${FF_USE_PREBUILT_LEGION} FF_USE_ALL_PREBUILT_LIBRARIES=${FF_USE_ALL_PREBUILT_LIBRARIES} FF_USE_AVX2=${FF_USE_AVX2} FF_MAX_DIM=${FF_MAX_DIM} ROCM_PATH=${ROCM_PATH} FF_GPU_BACKEND=${FF_GPU_BACKEND}"
}

if [ -n "$1" ] && [ "$1" == "CMAKE_FLAGS" ]; then
if [[ -n "$1" && ( "$1" == "CMAKE_FLAGS" || "$1" == "CUDA_PATH" ) ]]; then
. $(dirname $0)/config.inc
# Passing CMAKE_FLAGS as $1 will print the value of the CMAKE_FLAGS variable,
# which is set in the config.inc file. This is used in the python setup.py script
# Passing CMAKE_FLAGS or CUDA_PATH as $1 will print the value of the CMAKE_FLAGS/CUDA_PATH variable,
# which are set here or in the config.inc file. This is used in the python setup.py script
# to get the cmake config
echo "${!1}"
elif [ -z "$1" ] || [ "$1" != "get-docker-configs" ]; then
elif [[ -z "$1" || "$1" != "get-docker-configs" ]]; then
. $(dirname $0)/config.inc
run_cmake $*
fi

0 comments on commit 25b399e

Please sign in to comment.