Skip to content

Commit

Permalink
src: fix compilation errors after bump to 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Sep 2, 2024
1 parent a8067ab commit 1d903ee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/faabric-base.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt update \
wget \
# LLVM APT Repo config
&& wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc \
&& add-apt-repository -y "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${LLVM_VERSION_MAJOR} main"
&& add-apt-repository -y "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${LLVM_VERSION_MAJOR} main"

# Install APT packages
RUN apt update && apt install -y \
Expand Down
2 changes: 1 addition & 1 deletion docker/faabric.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG FAABRIC_VERSION
SHELL ["/bin/bash", "-c"]

# Flag to say we're in a container
ENV FAABRIC_DOCKER="on"
ENV FAABRIC_DOCKER "on"

# Put the code in place
WORKDIR /code
Expand Down
1 change: 1 addition & 0 deletions include/faabric/util/bytes.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <algorithm>
#include <cstdint>
#include <iomanip>
#include <list>
#include <span>
Expand Down
2 changes: 2 additions & 0 deletions src/planner/Planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ static void releaseHostMpiPort(std::shared_ptr<Host> host, int mpiPort)
throw std::runtime_error("Requested to free unavailable MPI port!");
}

#ifndef NDEBUG
static void printHostState(std::map<std::string, std::shared_ptr<Host>> hostMap,
const std::string& logLevel = "debug")
{
Expand Down Expand Up @@ -147,6 +148,7 @@ static void printHostState(std::map<std::string, std::shared_ptr<Host>> hostMap,
SPDLOG_ERROR("Unrecognised log level: {}", logLevel);
}
}
#endif

// ----------------------
// Planner
Expand Down

0 comments on commit 1d903ee

Please sign in to comment.