File tree 1 file changed +21
-0
lines changed 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,24 @@ __configure_fbgemm_gpu_test_rocm () {
121
121
)
122
122
}
123
123
124
+ __set_feature_flags () {
125
+ # shellcheck disable=SC2155
126
+ local env_prefix=$( env_name_or_prefix " ${env_name} " )
127
+
128
+ # NOTE: The full list of feature flags is defined (without the `FBGEMM_`
129
+ # prefix) in:
130
+ # fbgemm_gpu/include/config/feature_gates.h
131
+ local feature_flags=(
132
+ FBGEMM_TBE_ENSEMBLE_ROWWISE_ADAGRAD
133
+ )
134
+
135
+ echo " [TEST] Setting feature flags ..."
136
+ for flag in " ${feature_flags[@]} " ; do
137
+ # shellcheck disable=SC2086
138
+ print_exec conda env config vars set ${env_prefix} ${flag} =1
139
+ done
140
+ }
141
+
124
142
__setup_fbgemm_gpu_test () {
125
143
# shellcheck disable=SC2155
126
144
local env_prefix=$( env_name_or_prefix " ${env_name} " )
@@ -164,6 +182,9 @@ __setup_fbgemm_gpu_test () {
164
182
(test_python_import_package " ${env_name} " fbgemm_gpu.split_embedding_codegen_lookup_invokers) || return 1
165
183
fi
166
184
185
+ # Set the feature flags to enable experimental features as needed
186
+ __set_feature_flags
187
+
167
188
# Configure the PyTest args
168
189
pytest_args=(
169
190
-v
You can’t perform that action at this time.
0 commit comments