java-romp / jromp

Java Runtime implementation of OpenMP.
https://java-romp.github.io/jromp/
MIT License
5 stars 0 forks source link

Set threads with an environment variable #58

Closed scastd closed 5 days ago

scastd commented 1 week ago

Describe the feature

In OpenMP you can set the number of threads to be used with the OMP_NUM_THREADS environment variable. Adding support for this capability could help users to set the number of threads without having to change their code manually.

Additional information

Final checks

scastd commented 1 week ago

The environment variable name could be like this: JROMP_NUM_THREADS