Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Nov 10, 2022

After an offline discussion, we agreed on the split for cross-compiled example applications: libraries belonging to the sysroot live in faasm/cpp and everything else will live in fasm/examples. The goal is to keep the cross-compiled applications together, but let them die if necessary. As a consequence, things like FFmpeg or ImageMagick should not be tested here.

In this PR, I remove the ffmpeg tests and add a couple of features that we need for the new faasm/examples repo:

  1. Support to run a pool of runners locally from the CLI. This is useful to run locally functions that need more than one faaslet like MPI or OpenMP functions.
  2. Fix in ./bin/inv_wrapper.sh.

As a consequence of the first point, we can now run:

inv run.pool mpi mpi_allgather

# Assuming data is in place
inv run.pool lammps main --cmdline "-in faasm://in.controller.wall"

See the main PR in faasm/examples#1

@csegarragonz csegarragonz self-assigned this Nov 10, 2022
{
faabric::util::initLogging();

// Define command line arguments
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this to runner_utils.cpp to be used both by func_runner and local_pool_runner.

REQUIRE(!moduleRefA1.exports.empty());
REQUIRE(!moduleRefB1.exports.empty());
REQUIRE(moduleRefA1.memories.defs[0].type.size.max == MAX_WASM_MEMORY_PAGES);
REQUIRE(moduleRefA1.memories.defs[0].type.size.max ==
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting

@csegarragonz csegarragonz marked this pull request as ready for review November 11, 2022 14:21
# Wrapper script for running invoke in virtual env

source bin/workon.sh && inv -r faasmcli/faasmcli $@
source bin/workon.sh && inv -r faasmcli/faasmcli "$@"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added quotes, as otherwise if we pass a command with quotes they would not be preserved.

@csegarragonz csegarragonz changed the title Support pool_runner from the CLI Clarify split for cross-compiled applications Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants