Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'parpool(2)' fails #131

Open
OptHuang opened this issue Jan 18, 2025 · 2 comments
Open

'parpool(2)' fails #131

OptHuang opened this issue Jan 18, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@OptHuang
Copy link

OptHuang commented Jan 18, 2025

Strange bug occurs when I am testing parpool(2) on MATLAB R2021b, R2022a, and R2022b as follows.


Error using parpool
Undefined function 'pCurrentTaskIsPartOfAPool' for input arguments of type
'double'.

Error in command_a74dfc76_b474_49c5_94e1_8e53283cd400 (line 1)
cd(getenv('MW_ORIG_WORKING_FOLDER'));parpool(2)


Reproduction workflow:

name: test parallel computing toolbox

on:
  push:
    branches: [matlab]

jobs:

  test:

    name: MATLAB ${{ matrix.matlab }} on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macOS-latest]
        matlab: [latest, R2021b, R2022a, R2022b, R2023a, R2023b]

    steps:

      - name: Check out repository
        uses: actions/checkout@v4

      - name: Set up MATLAB with optimization toolbox and parallel computing toolbox
        uses: matlab-actions/setup-matlab@v2
        with:
          release: ${{ matrix.matlab }}
          cache: true
          products: Optimization_Toolbox Parallel_Computing_Toolbox

      - name: Test parallel computing
        uses: matlab-actions/[email protected]
        with:
          command: |
            parpool(2)
@mcafaro
Copy link
Member

mcafaro commented Jan 22, 2025

Thanks for bringing this issue to our attention, @OptHuang. I have successfully reproduced the problem and forwarded the details to the relevant team. I will keep you updated with any progress or developments.

@mcafaro mcafaro added the bug Something isn't working label Jan 22, 2025
@OptHuang
Copy link
Author

@mcafaro Thanks for the attention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants