Skip to content

Commit

Permalink
[fbgemm_gpu] Feature flags enablement for OSS CI
Browse files Browse the repository at this point in the history
- Feature flags enablement for OSS CI
  • Loading branch information
q10 committed Aug 14, 2024
1 parent 3070f88 commit 578df27
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/scripts/fbgemm_gpu_test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,24 @@ __configure_fbgemm_gpu_test_rocm () {
)
}

__set_feature_flags () {
# shellcheck disable=SC2155
local env_prefix=$(env_name_or_prefix "${env_name}")

# NOTE: The full list of feature flags is defined (without the `FBGEMM_`
# prefix) in:
# fbgemm_gpu/include/config/feature_gates.h
local feature_flags=(
FBGEMM_TBE_ENSEMBLE_ROWWISE_ADAGRAD
)

echo "[TEST] Setting feature flags ..."
for flag in "${feature_flags[@]}"; do
# shellcheck disable=SC2086
print_exec conda env config vars set ${env_prefix} ${flag}=1
done
}

__setup_fbgemm_gpu_test () {
# shellcheck disable=SC2155
local env_prefix=$(env_name_or_prefix "${env_name}")
Expand Down Expand Up @@ -164,6 +182,9 @@ __setup_fbgemm_gpu_test () {
(test_python_import_package "${env_name}" fbgemm_gpu.split_embedding_codegen_lookup_invokers) || return 1
fi

# Set the feature flags to enable experimental features as needed
__set_feature_flags

# Configure the PyTest args
pytest_args=(
-v
Expand Down

0 comments on commit 578df27

Please sign in to comment.