Rename and extract Context. (#8528)

* Rename `GenericParameter` to `Context`.
* Rename header file to reflect the change.
* Rename all references.
This commit is contained in:
Jiaming Yuan
2022-12-07 04:58:54 +08:00
committed by GitHub
parent 05fc6f3ca9
commit 3e26107a9c
105 changed files with 548 additions and 574 deletions

View File

@@ -114,7 +114,7 @@ class BroadcastFunctor {
int root_;
};
void InMemoryHandler::Init(int world_size, int rank) {
void InMemoryHandler::Init(int world_size, int) {
CHECK(world_size_ < world_size) << "In memory handler already initialized.";
std::unique_lock<std::mutex> lock(mutex_);
@@ -124,7 +124,7 @@ void InMemoryHandler::Init(int world_size, int rank) {
cv_.notify_all();
}
void InMemoryHandler::Shutdown(uint64_t sequence_number, int rank) {
void InMemoryHandler::Shutdown(uint64_t sequence_number, int) {
CHECK(world_size_ > 0) << "In memory handler already shutdown.";
std::unique_lock<std::mutex> lock(mutex_);