# Error when partitioning test example 2d Euler

**URL:** <https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193>\
**Category:** Errors\
**Created:** [27 November 2024 23:07 UTC](https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193 "2024-11-27T23:07:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soulstriker](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Soulstriker](https://pyfr.discourse.group/u/Soulstriker)\
**Post date:** [27 November 2024 23:07 UTC](https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193/1 "2024-11-27T23:07:18Z")

</div>

I received the no partitioners error as I’ve seen others have in the forums. I had metis installed but it is version 5.1 - I see comments that we should be using 5.2.

Unfortunately I cannot seem to find this version anywhere? Any guidance on getting this installed (or the alternative) would be appreciated.

I am using WSL ubuntu.

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [28 November 2024 12:51 UTC](https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193/2 "2024-11-28T12:51:09Z")

</div>

> **[Release v5.2.1 · KarypisLab/METIS](https://github.com/KarypisLab/METIS/releases/tag/v5.2.1)**
>
> fixing version numbers

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![Soulstriker](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Soulstriker](https://pyfr.discourse.group/u/Soulstriker)\
**Post date:** [14 December 2024 00:30 UTC](https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193/3 "2024-12-14T00:30:39Z")

</div>

I tried that release but still had trouble.

I attempted a fresh install following the ubuntu installation guide. I am using WSL.

All installed fine. I then got to the 2d euler vortex example where it failed at step 4, giving me this error:

```auto
> mpiexec -n 2 pyfr -p run -b cuda euler-vortex.pyfrm euler-vortex.ini
Traceback (most recent call last):
  File "/path/to/pyfr-venv/bin/pyfr", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/ __main__.py", line 124, in main
    args.process(args)
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/ __main__.py", line 258, in process_run
    _process_common(
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/ __main__.py", line 237, in _process_common
    backend = get_backend(args.backend, cfg)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/backends/ __init__.py", line 11, in get_backend
    return subclass_where(BaseBackend, name=name.lower())(cfg)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/backends/cuda/base.py", line 18, in __init__
    self.cuda = CUDA()
                ^^^^^^
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/backends/cuda/driver.py", line 444, in __init__
    self.lib.cuInit(0)
  File "/path/to/pyfr-venv/lib/python3.11/site-packages/pyfr/ctypesutil.py", line 37, in _errcheck
    raise self._statuses[status]
pyfr.backends.cuda.driver.CUDANoDevice
--------------------------------------------------------------------------
prterun detected that one or more processes exited with non-zero status,
thus causing the job to be terminated. The first process to do so was:

   Process name: [prterun-hostname-138003@1,1]
   Exit code: 1

```

I ran `nvidia-smi` and `nvcc --version` which showed my gpu and driver details.

Any further help appreciated.

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [14 December 2024 03:55 UTC](https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193/4 "2024-12-14T03:55:53Z")

</div>

Does it work if you try and run with only a single partition?

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![Soulstriker](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Soulstriker](https://pyfr.discourse.group/u/Soulstriker)\
**Post date:** [14 December 2024 10:05 UTC](https://pyfr.discourse.group/t/error-when-partitioning-test-example-2d-euler/1193/5 "2024-12-14T10:05:54Z")

</div>

Thanks Freddie.

I had to run

```auto
pyfr partition 1 euler-vortex.pyfrm .

```

and then

```auto
mpiexec -n 1 pyfr -p run -b cuda ./euler-vortex.pyfrm euler-vortex.ini

```

and then the `pyfrs` files generated.
