Skip to content

Commit

Permalink
Leave --march unset by default (nv-legate#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad authored Dec 6, 2023
1 parent 08da13f commit ac081ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ def validate_path(path):
"Debug" if debug else "RelWithDebInfo" if debug_release else "Release"
)}
-DBUILD_SHARED_LIBS=ON
-DBUILD_MARCH={march}
-DLegion_MAX_DIM={str(maxdim)}
-DLegion_MAX_FIELDS={str(maxfields)}
-DLegion_SPY={("ON" if spy else "OFF")}
Expand All @@ -506,6 +505,8 @@ def validate_path(path):
-DLegion_EMBED_GASNet_CONFIGURE_ARGS="--with-ibv-max-hcas=8"
""".splitlines()

if march:
cmake_flags += [f"-DBUILD_MARCH={march}"]
if cuda:
cmake_flags += [f"-DLegion_CUDA_ARCH={arch}"]
if nccl_dir:
Expand Down Expand Up @@ -688,7 +689,7 @@ def driver():
"--march",
dest="march",
required=False,
default=("haswell" if platform.machine() == "x86_64" else "native"),
default=("haswell" if platform.machine() == "x86_64" else None),
help="Specify the target CPU architecture.",
)
parser.add_argument(
Expand Down

0 comments on commit ac081ac

Please sign in to comment.