Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable compilation of DISC by default #15

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def bazel_build(self, ext):

bazel_argv.extend(build_util.bazel_options_from_env())

if not build_util.check_env_flag('ENABLE_DISC', 'true'):
if not build_util.check_env_flag('ENABLE_DISC', 'false'):
bazel_argv.append('--define=enable_disc=false')

self.spawn(bazel_argv)
Expand All @@ -253,7 +253,7 @@ def bazel_build(self, ext):

# package BladeDISC distribution files
# please note, TorchBlade also create some symbolic links to 'torch_blade' dir
if build_util.check_env_flag('ENABLE_DISC', 'true'):
if build_util.check_env_flag('ENABLE_DISC', 'false'):
disc_ral_so_name = 'libral_base_context.so'
bazel_bin_path = 'build/temp.linux-x86_64-cpython-310/bazel-bin/external/disc_compiler'
shutil.copyfile(
Expand Down
Loading