Skip to content

Compilers unrecognised on Windows #9

Open
@TysonRayJones

Description

@TysonRayJones

Hi there,

Thanks very much for a wonderfully helpful Github Action!

I was wondering what the compiler command is when on Windows. I've tried

mpicc
mpic++
mpicxx

but none of them are recognised, though they work on ubuntu-latest and macos-latest.

My workflow is a very simple:

jobs:

  cpp_mpi:
    name: C++ (MPI)
    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v4
      - uses: ilammy/msvc-dev-cmd@v1
      - uses: mpi4py/setup-mpi@v1

      - name: compile backend
        run: |
          mpicxx -c mycode.cpp

but my actions report that mpicxx is not recognised.

I can see in the CI that these commands should work, at least when using the Intel MPI compiler.

What am I doing wrong? Do I need to give the action extra clues about my os?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions