@@ -17,11 +17,6 @@ executors:
17
17
machine :
18
18
image : ubuntu-2004:current
19
19
resource_class : arm.medium
20
- macosx-x86_64-cpu :
21
- environment :
22
- CONDA_ARCH : MacOSX-x86_64
23
- macos :
24
- xcode : 11.7.0 # max supported for conda build, https://circleci.com/docs/using-macos#supported-xcode-versions
25
20
macosx-arm64-cpu :
26
21
environment :
27
22
CONDA_ARCH : MacOSX-arm64
66
61
cuda :
67
62
type : string
68
63
default : " "
64
+ raft :
65
+ type : string
66
+ default : " "
69
67
cuda_archs :
70
68
type : string
71
69
default : " "
93
91
- run :
94
92
name : Install conda build tools
95
93
command : |
94
+ conda config --set solver libmamba
95
+ # conda config --set verbosity 3
96
96
conda update -y -q conda
97
97
conda install -y -q conda-build
98
98
- when :
@@ -105,14 +105,16 @@ jobs:
105
105
conda config --set anaconda_upload yes
106
106
- when :
107
107
condition :
108
- not : << parameters.label >>
108
+ and :
109
+ - not : << parameters.label >>
110
+ - not : << parameters.cuda >>
109
111
steps :
110
112
- run :
111
113
name : Conda build (CPU)
112
114
no_output_timeout : 30m
113
115
command : |
114
116
cd conda
115
- conda build faiss --python 3.10 -c pytorch -c pkgs/main -c conda-forge
117
+ conda build faiss --python 3.11 -c pytorch
116
118
- when :
117
119
condition :
118
120
and :
@@ -124,12 +126,28 @@ jobs:
124
126
no_output_timeout : 30m
125
127
command : |
126
128
cd conda
127
- conda build faiss --user pytorch --label <<parameters.label>> -c pytorch -c pkgs/main -c conda-forge
129
+ conda build faiss --user pytorch --label <<parameters.label>> -c pytorch
130
+ - when :
131
+ condition :
132
+ and :
133
+ - not : << parameters.label >>
134
+ - << parameters.cuda >>
135
+ - not : << parameters.raft >>
136
+ steps :
137
+ - run :
138
+ name : Conda build (GPU)
139
+ no_output_timeout : 60m
140
+ command : |
141
+ sudo update-alternatives --set cuda /usr/local/cuda-<<parameters.cuda>>
142
+ cd conda
143
+ conda build faiss-gpu --variants '{ "cudatoolkit": "<<parameters.cuda>>", "c_compiler_version": "<<parameters.compiler_version>>", "cxx_compiler_version": "<<parameters.compiler_version>>" }' \
144
+ -c pytorch -c nvidia
128
145
- when :
129
146
condition :
130
147
and :
131
148
- << parameters.label >>
132
149
- << parameters.cuda >>
150
+ - not : << parameters.raft >>
133
151
steps :
134
152
- run :
135
153
name : Conda build (GPU) w/ anaconda upload
@@ -138,7 +156,37 @@ jobs:
138
156
sudo update-alternatives --set cuda /usr/local/cuda-<<parameters.cuda>>
139
157
cd conda
140
158
conda build faiss-gpu --variants '{ "cudatoolkit": "<<parameters.cuda>>", "c_compiler_version": "<<parameters.compiler_version>>", "cxx_compiler_version": "<<parameters.compiler_version>>" }' \
141
- --user pytorch --label <<parameters.label>> -c pytorch -c nvidia -c pkgs/main -c conda-forge
159
+ --user pytorch --label <<parameters.label>> -c pytorch -c nvidia
160
+ - when :
161
+ condition :
162
+ and :
163
+ - not : << parameters.label >>
164
+ - << parameters.cuda >>
165
+ - << parameters.raft >>
166
+ steps :
167
+ - run :
168
+ name : Conda build (GPU w/ RAFT)
169
+ no_output_timeout : 60m
170
+ command : |
171
+ sudo update-alternatives --set cuda /usr/local/cuda-<<parameters.cuda>>
172
+ cd conda
173
+ conda build faiss-gpu-raft --variants '{ "cudatoolkit": "<<parameters.cuda>>", "c_compiler_version": "<<parameters.compiler_version>>", "cxx_compiler_version": "<<parameters.compiler_version>>" }' \
174
+ -c pytorch -c nvidia -c rapidsai -c conda-forge
175
+ - when :
176
+ condition :
177
+ and :
178
+ - << parameters.label >>
179
+ - << parameters.cuda >>
180
+ - << parameters.raft >>
181
+ steps :
182
+ - run :
183
+ name : Conda build (GPU w/ RAFT) w/ anaconda upload
184
+ no_output_timeout : 60m
185
+ command : |
186
+ sudo update-alternatives --set cuda /usr/local/cuda-<<parameters.cuda>>
187
+ cd conda
188
+ conda build faiss-gpu-raft --variants '{ "cudatoolkit": "<<parameters.cuda>>", "c_compiler_version": "<<parameters.compiler_version>>", "cxx_compiler_version": "<<parameters.compiler_version>>" }' \
189
+ --user pytorch --label <<parameters.label>> -c pytorch -c nvidia -c rapidsai -c conda-forge
142
190
143
191
build_cmake :
144
192
parameters :
@@ -180,7 +228,7 @@ jobs:
180
228
command : |
181
229
conda config --set solver libmamba
182
230
conda update -y -q conda
183
- conda install -y -q pkgs/main:: python=3.10 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest gxx_linux-64 sysroot_linux-64 -c pkgs/main -c conda-forge
231
+ conda install -y -q python=3.11 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest gxx_linux-64 sysroot_linux-64
184
232
- when :
185
233
condition :
186
234
equal : [ "ON", << parameters.raft >> ]
@@ -282,9 +330,6 @@ workflows:
282
330
- build_conda :
283
331
name : Linux x86_64 (conda)
284
332
exec : linux-x86_64-cpu
285
- - build_conda :
286
- name : OSX x86_64 (conda)
287
- exec : macosx-x86_64-cpu
288
333
- build_conda :
289
334
name : Windows x86_64 (conda)
290
335
exec : windows-x86_64-cpu
@@ -313,17 +358,21 @@ workflows:
313
358
branches :
314
359
ignore : /.*/
315
360
- build_conda :
316
- name : Windows x86_64 packages
317
- exec : windows -x86_64-cpu
361
+ name : Linux x86_64 GPU w/ RAFT packages (CUDA 11.4)
362
+ exec : linux -x86_64-gpu
318
363
label : main
364
+ raft : " ON"
365
+ cuda : " 11.4"
366
+ cuda_archs : " 60;61;70;72;75;80;86"
367
+ compiler_version : " 11.2"
319
368
filters :
320
369
tags :
321
370
only : /^v.*/
322
371
branches :
323
372
ignore : /.*/
324
373
- build_conda :
325
- name : OSX x86_64 packages
326
- exec : macosx -x86_64-cpu
374
+ name : Windows x86_64 packages
375
+ exec : windows -x86_64-cpu
327
376
label : main
328
377
filters :
329
378
tags :
@@ -373,10 +422,6 @@ workflows:
373
422
name : Windows x86_64 nightlies
374
423
exec : windows-x86_64-cpu
375
424
label : nightly
376
- - build_conda :
377
- name : OSX x86_64 nightlies
378
- exec : macosx-x86_64-cpu
379
- label : nightly
380
425
- build_conda :
381
426
name : OSX arm64 nightlies
382
427
exec : macosx-arm64-cpu
0 commit comments