Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/master-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup
run: source /home/hicr/.bashrc && meson setup build -Dengines=mpi,cloudr -Db_coverage=true -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
run: source /home/hicr/.bashrc && meson setup build -Dengines=mpi,cloudr -Db_coverage=true -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=false

- name: Compile
run: source /home/hicr/.bashrc && meson compile -C build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-development-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup
run: source /home/hicr/.bashrc && meson setup build -Db_coverage=true -Dengines=mpi,cloudr -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
run: source /home/hicr/.bashrc && meson setup build -Db_coverage=true -Dengines=mpi,cloudr -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=false

- name: Compile
run: source /home/hicr/.bashrc && meson compile -C build
Expand Down
2 changes: 1 addition & 1 deletion extern/TaskR
48 changes: 24 additions & 24 deletions include/hllm/channelCreationImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ __INLINE__ void createChannelBuffers(HiCR::MemoryManager
}

void createChannels(HiCR::MemoryManager &memoryManager,
HiCR::CommunicationManager &communicationManager,
std::shared_ptr<HiCR::MemorySpace> &memorySpace,
std::map<HiCR::GlobalMemorySlot::tag_t, nlohmann::json> &consumersData,
std::map<HiCR::GlobalMemorySlot::tag_t, nlohmann::json> &producersData,
HiCR::GlobalMemorySlot::tag_t channelsIds,
std::map<HiCR::GlobalMemorySlot::tag_t, std::string> &channelTagNameMap,
std::unordered_map<std::string, std::unique_ptr<hLLM::channel::channelConsumerInterface_t>> &consumers,
std::unordered_map<std::string, std::unique_ptr<hLLM::channel::channelProducerInterface_t>> &producers)
HiCR::CommunicationManager &communicationManager,
std::shared_ptr<HiCR::MemorySpace> &memorySpace,
std::map<HiCR::GlobalMemorySlot::tag_t, nlohmann::json> &consumersData,
std::map<HiCR::GlobalMemorySlot::tag_t, nlohmann::json> &producersData,
HiCR::GlobalMemorySlot::tag_t channelsIds,
std::map<HiCR::GlobalMemorySlot::tag_t, std::string> &channelTagNameMap,
std::unordered_map<std::string, std::unique_ptr<hLLM::channel::channelConsumerInterface_t>> &consumers,
std::unordered_map<std::string, std::unique_ptr<hLLM::channel::channelProducerInterface_t>> &producers)
{
std::map<HiCR::GlobalMemorySlot::tag_t, std::vector<HiCR::CommunicationManager::globalKeyMemorySlotPair_t>> memorySlotsToExchange;
std::map<HiCR::GlobalMemorySlot::tag_t, std::shared_ptr<HiCR::LocalMemorySlot>> coordinationBufferSizesSlots;
Expand Down Expand Up @@ -319,22 +319,22 @@ void Engine::createDependencies()
}

createChannels(*_unbufferedMemoryManager,
*_unbufferedCommunicationManager,
_unbufferedMemorySpace,
unbufferedConsumers,
unbufferedProducers,
unbufferedChannelId,
unbufferedChannelTagNameMap,
_consumers,
_producers);
*_unbufferedCommunicationManager,
_unbufferedMemorySpace,
unbufferedConsumers,
unbufferedProducers,
unbufferedChannelId,
unbufferedChannelTagNameMap,
_consumers,
_producers);
createChannels(*_bufferedMemoryManager,
*_bufferedCommunicationManager,
_bufferedMemorySpace,
bufferedConsumers,
bufferedProducers,
bufferedChannelId,
bufferedChannelTagNameMap,
_consumers,
_producers);
*_bufferedCommunicationManager,
_bufferedMemorySpace,
bufferedConsumers,
bufferedProducers,
bufferedChannelId,
bufferedChannelTagNameMap,
_consumers,
_producers);
}
} // namespace hLLM
7 changes: 5 additions & 2 deletions include/hllm/engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,11 @@ class Engine final
_taskr->setTaskCallbackHandler(HiCR::tasking::Task::callback_t::onTaskSuspend, [&](taskr::Task *task) { _taskr->resumeTask(task); });

// Setting service to listen for incoming administrative messages
std::function<void()> RPCListeningService = [this]() {
std::function<void()> RPCListeningServiceFc = [this]() {
if (_rpcEngine->hasPendingRPCs()) _rpcEngine->listen();
};
_taskr->addService(&RPCListeningService);
_rpcListeningService = std::make_unique<taskr::Service>(RPCListeningServiceFc, 50);
_taskr->addService(_rpcListeningService.get());

// Running TaskR
_taskr->run();
Expand Down Expand Up @@ -626,6 +627,8 @@ class Engine final
HiCR::Instance::instanceId_t _deployerInstanceId;

std::map<partitionId_t, deployr::Runner::runnerId_t> _partitionRunnerIdMap;

std::unique_ptr<taskr::Service> _rpcListeningService;
}; // class Engine

} // namespace hLLM
Expand Down
4 changes: 2 additions & 2 deletions include/hllm/parseConfigImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ __INLINE__ std::unordered_map<std::string, nlohmann::json> Engine::parseDependen
{
if (dependenciesMap.contains(output) == false)
{
HICR_THROW_RUNTIME("Producer %s defined in partition %s has no consumers defined", output.get<std::string>(), partition["Name"]);
HICR_THROW_RUNTIME("Producer %s defined in partition %s has no consumers defined", output.get<std::string>().c_str(), partition["Name"].get<std::string>().c_str());
}

if (dependenciesMap[output].contains("Producer"))
{
HICR_THROW_RUNTIME("Set two producers for buffered dependency %s is not allowed. Producer: %s, tried to add %s",
output,
output.get<std::string>().c_str(),
hicr::json::getNumber<partitionId_t>(dependenciesMap[output], "Producer"),
hicr::json::getString(partition, "Name").c_str());
}
Expand Down
Loading