diff --git a/.github/actions/test-linux/action.yml b/.github/actions/test-linux/action.yml index 9f318c8c7..9a0f49b55 100644 --- a/.github/actions/test-linux/action.yml +++ b/.github/actions/test-linux/action.yml @@ -9,13 +9,18 @@ inputs: runs: using: "composite" steps: + - name: Run MPI tests + shell: bash + run: | + echo "::group::MPI tests" + mpirun --bind-to none --allow-run-as-root -host localhost:8 -np 8 python python/tests/mpi_test_distributed.py + echo "::endgroup::" + - name: Run distributed tests - # FIXME: This test fails with CUDA build. if: ${{ inputs.cpu-only == 'true' }} shell: bash run: | echo "::group::Distributed tests" - mpirun --bind-to none --allow-run-as-root -host localhost:8 -np 8 python python/tests/mpi_test_distributed.py mlx.launch --verbose -n 8 python/tests/ring_test_distributed.py -v 2> >(tee -a stderr.log >&2) if grep -Fq '[WARN]' stderr.log ; then grep -F '[WARN]' stderr.log @@ -34,7 +39,7 @@ runs: echo "::endgroup::" - name: Run Python tests - GPU - if: ${{ !inputs.cpu-only }} + if: ${{ inputs.cpu-only == 'false' }} shell: bash env: DEVICE: gpu @@ -53,7 +58,7 @@ runs: echo "::endgroup::" - name: Run CPP tests - GPU - if: ${{ !inputs.cpu-only }} + if: ${{ inputs.cpu-only == 'false' }} shell: bash env: DEVICE: gpu diff --git a/mlx/backend/cuda/utils.cpp b/mlx/backend/cuda/utils.cpp index 09894d4ca..3ab1a05bc 100644 --- a/mlx/backend/cuda/utils.cpp +++ b/mlx/backend/cuda/utils.cpp @@ -60,7 +60,7 @@ const char* dtype_to_cuda_type(const Dtype& dtype) { case float64: return "double"; case complex64: - return "complex64_t"; + return "mlx::core::cu::complex64_t"; default: return "unknown"; }