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

running on multicores #22

Closed
VivekVarkal opened this issue Jun 30, 2021 · 3 comments
Closed

running on multicores #22

VivekVarkal opened this issue Jun 30, 2021 · 3 comments

Comments

@VivekVarkal
Copy link

Is it possible to run on multiple cores through cae? I couldn't find any?

@imirzov
Copy link
Collaborator

imirzov commented Jul 1, 2021

Sure, in CAE CalculiX runs automatically on all cores.

https://github.com/calculix/cae/blob/master/src/gui/job.py
line 213:
os.environ['OMP_NUM_THREADS'] = str(os.cpu_count()) # enable multithreading

@VivekVarkal
Copy link
Author

Yes, I got it. However, I am using for windows "CalculiX Advanced Environment v0.8.0" from "latest release". Can you please tell me where I could find the similar setting?

@imirzov
Copy link
Collaborator

imirzov commented Jul 7, 2021

In the same file, if you're using the source code version.
/src/model/job.py, line 171:
os.environ['OMP_NUM_THREADS'] = str(os.cpu_count()) # enable multithreading

Binary version has enabled multi-threading, and it can't be switched off.

@imirzov imirzov closed this as completed Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants