File tree 4 files changed +16
-8
lines changed
4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ ifeq ($(BUILD_TYPE), hipblas)
8
8
CONDA_ENV_PATH = "transformers-rocm.yml"
9
9
endif
10
10
11
+ ifneq (,$(findstring sycl,$(BUILD_TYPE ) ) )
12
+ export SKIP_CONDA =1
13
+ endif
14
+
11
15
.PHONY : transformers
12
16
transformers :
13
17
@echo " Installing $( CONDA_ENV_PATH) ..."
Original file line number Diff line number Diff line change @@ -6,12 +6,16 @@ conda_env_exists(){
6
6
! conda list --name " ${@ } " > /dev/null 2> /dev/null
7
7
}
8
8
9
- if conda_env_exists " transformers" ; then
10
- echo " Creating virtual environment..."
11
- conda env create --name transformers --file $1
12
- echo " Virtual environment created."
13
- else
14
- echo " Virtual environment already exists."
9
+ if [ $SKIP_CONDA == 1 ]; then
10
+ echo " Skipping conda environment installation"
11
+ else
12
+ if conda_env_exists " transformers" ; then
13
+ echo " Creating virtual environment..."
14
+ conda env create --name transformers --file $1
15
+ echo " Virtual environment created."
16
+ else
17
+ echo " Virtual environment already exists."
18
+ fi
15
19
fi
16
20
17
21
if [ " $PIP_CACHE_PURGE " = true ] ; then
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export CONDA_ENV_PATH = "diffusers-rocm.yml"
5
5
endif
6
6
7
7
ifneq (,$(findstring sycl,$(BUILD_TYPE ) ) )
8
- export SKIP =1
8
+ export SKIP_CONDA =1
9
9
endif
10
10
11
11
.PHONY : diffusers
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ conda_env_exists(){
6
6
! conda list --name " ${@ } " > /dev/null 2> /dev/null
7
7
}
8
8
9
- if [ $SKIP == 1 ]; then
9
+ if [ $SKIP_CONDA == 1 ]; then
10
10
echo " Skipping conda environment installation"
11
11
else
12
12
if conda_env_exists " diffusers" ; then
You can’t perform that action at this time.
0 commit comments