# PETSc Error on windows machine

**URL:** <https://community.freefem.org/t/petsc-error-on-windows-machine/2740>\
**Category:** General Discussion\
**Created:** [October 7, 2023, 7:21am UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740 "2023-10-07T07:21:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.lbolok](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@m.lbolok](https://community.freefem.org/u/m.lbolok)\
**Post date:** [October 7, 2023, 7:21am UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/1 "2023-10-07T07:21:03Z")

</div>

Hi,

I get an error message (system error) when using PETSc on a Windows machine (AMD CPU) as follows:  
" The procedure entry point MPI\_Comm\_split\_type could not be located in the dynamic link library C:\Program Files(x86)\FreeFem++\PETSc.Dll."

Could you please let me know how I can figure it out?

Regards,

P.S.  
There is no such problem with the intel cpu.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [October 8, 2023, 4:37am UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/2 "2023-10-08T04:37:19Z")

</div>

Did you compile FreeFEM yourself?

---

<div class="post-metadata">

**Author:** ![m.lbolok](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@m.lbolok](https://community.freefem.org/u/m.lbolok)\
**Post date:** [October 8, 2023, 8:53am UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/3 "2023-10-08T08:53:41Z")

</div>

No. Run it in cmd by:

" mpiexec.exe -np 2 FreeFem+±mpi.exe pmpi.edp"

I guess PETSc does not work with some sort of CPUs.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [October 8, 2023, 9:12am UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/4 "2023-10-08T09:12:48Z")

</div>

How did you compile FreeFEM? PETSc does work with most CPU, this has nothing to do with Intel versus AMD since both are x86\_64-based.

---

<div class="post-metadata">

**Author:** ![m.lbolok](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@m.lbolok](https://community.freefem.org/u/m.lbolok)\
**Post date:** [October 30, 2023, 7:27pm UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/5 "2023-10-30T19:27:02Z")

</div>

Hi,

I did not compile FreeFEM. I installed it using the provided FreeFem+±4.13-win64.exe file. Run it in cmd by:  
" mpiexec.exe -np 2 FreeFem+±mpi.exe pmpi.edp". Should we compile the source code of the FreeFEM?

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [October 30, 2023, 7:36pm UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/6 "2023-10-30T19:36:27Z")

</div>

Not necessarily. Do other MPI examples from `examples/mpi` work?

---

<div class="post-metadata">

**Author:** ![m.lbolok](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@m.lbolok](https://community.freefem.org/u/m.lbolok)\
**Post date:** [October 31, 2023, 2:42pm UTC](https://community.freefem.org/t/petsc-error-on-windows-machine/2740/7 "2023-10-31T14:42:55Z")

</div>

Hi,

I uninstalled the previous version of MsMPI and installed the new version of it (Microsoft MPI v10.0  
). Now, it is working well.

With regards,
