Skip to content

Commit

Permalink
Leave --march unset by default (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad authored Dec 8, 2023
1 parent 96ed9cd commit c1bfd9d
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 @@ -341,7 +341,6 @@ def validate_path(path):
"Debug" if debug else "RelWithDebInfo" if debug_release else "Release"
)}
-DBUILD_SHARED_LIBS=ON
-DBUILD_MARCH={str(march)}
-DCMAKE_CUDA_ARCHITECTURES={str(arch)}
-DLegion_MAX_DIM={str(maxdim)}
-DLegion_MAX_FIELDS={str(maxfields)}
Expand All @@ -354,6 +353,8 @@ def validate_path(path):
-DLegion_USE_HDF5={("ON" if hdf else "OFF")}
""".splitlines()

if march:
cmake_flags += [f"-DBUILD_MARCH={march}"]
if cuda_dir:
cmake_flags += ["-DCUDAToolkit_ROOT=%s" % cuda_dir]
if nccl_dir:
Expand Down Expand Up @@ -557,7 +558,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 c1bfd9d

Please sign in to comment.