Skip to content

Commit

Permalink
Remove unnecessary flags in Legion CMake build (#932) (#935)
Browse files Browse the repository at this point in the history
* Remove unnecessary flags in Legion CMake build (#932)

* Remove unnecessary flags in Legion CMake build.

The flag --root here is a workaround for buggy behavior in `pip install`
where pip would ignore the --prefix setting when --global-option was
supplied. As it turns out, --global-option is deprecated anyway so we
removed in Legion. As a result, this is no longer required; the prefix
is already set in the upstream project and the need for --root goes away
with the removal of --global-option.

See this Legion MR for details:

https://gitlab.com/StanfordLegion/legion/-/merge_requests/1072

* Make sure to use the latest Legion

---------

Co-authored-by: Manolis Papadakis <[email protected]>
Co-authored-by: Manolis Papadakis <[email protected]>

* Try adding back --root to see if it still works under ToT legion

* Revert "Try adding back --root to see if it still works under ToT legion"

This reverts commit d48ebec.

* Bump Legion to get legion!1123

---------

Co-authored-by: Elliott Slaughter <[email protected]>
  • Loading branch information
manopapad and elliottslaughter authored Feb 21, 2024
1 parent 1d0265c commit 0f509a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
3 changes: 0 additions & 3 deletions cmake/thirdparty/get_legion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ function(find_or_configure_legion)

include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/cpm_helpers.cmake)
get_cpm_git_args(legion_cpm_git_args REPOSITORY ${git_repo} BRANCH ${git_branch})
if(NOT DEFINED Legion_PYTHON_EXTRA_INSTALL_ARGS)
set(Legion_PYTHON_EXTRA_INSTALL_ARGS "--root / --prefix \"\${CMAKE_INSTALL_PREFIX}\"")
endif()

# Support comma and semicolon delimited lists
string(REPLACE "," " " Legion_PYTHON_EXTRA_INSTALL_ARGS "${Legion_PYTHON_EXTRA_INSTALL_ARGS}")
Expand Down
2 changes: 1 addition & 1 deletion cmake/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"Legion": {
"git_url" : "https://gitlab.com/StanfordLegion/legion.git",
"git_tag" : "0cbee456b9ee80e494262f663bd4838666bdd0be"
"git_tag" : "ada1f4d6fcb651029798c826ff47a5455d38bc59"
}
}
}
9 changes: 4 additions & 5 deletions src/core/mapping/base_mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,10 @@ void BaseMapper::map_task(const Legion::Mapping::MapperContext ctx,
map_legate_stores(ctx, task, for_stores, task.target_proc, output_map);
}

void BaseMapper::map_replicate_task(const Legion::Mapping::MapperContext ctx,
const Legion::Task& task,
const MapTaskInput& input,
const MapTaskOutput& def_output,
MapReplicateTaskOutput& output)
void BaseMapper::replicate_task(const Legion::Mapping::MapperContext ctx,
const Legion::Task& task,
const ReplicateTaskInput& input,
ReplicateTaskOutput& output)
{
LEGATE_ABORT;
}
Expand Down
9 changes: 4 additions & 5 deletions src/core/mapping/base_mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ class BaseMapper : public Legion::Mapping::Mapper, public MachineQueryInterface
const Legion::Task& task,
const MapTaskInput& input,
MapTaskOutput& output) override;
virtual void map_replicate_task(const Legion::Mapping::MapperContext ctx,
const Legion::Task& task,
const MapTaskInput& input,
const MapTaskOutput& default_output,
MapReplicateTaskOutput& output) override;
virtual void replicate_task(const Legion::Mapping::MapperContext ctx,
const Legion::Task& task,
const ReplicateTaskInput& input,
ReplicateTaskOutput& output) override;
virtual void select_task_variant(const Legion::Mapping::MapperContext ctx,
const Legion::Task& task,
const SelectVariantInput& input,
Expand Down

0 comments on commit 0f509a0

Please sign in to comment.