Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Using the multiprocessing Module in a Python Journal (NX 12)

Status
Not open for further replies.

junfanbl

Marine/Ocean
Jun 10, 2015
90
0
0
US
From what I understand, NX journals are single threaded. meaning they don't take advantage of all the CPU cores your workstation has. In an effort to speed up my code, I tried using the multiprocessing module in NX 12 for a python Journal. I'm trying to speed up execution by using more than one CPU core.

I'm able to import the module without error. However when I want to use it to distribute a task to all CPU cores by using the statement: multiprocesss.Pool(), I receive an error stating that a specified file cannot be found.

In other words it doesn't work.

Does anyone know of a way to go beyond a single thread in NX Journals? It's the only coding environment I have so, trying to work with it.

Thanks.
 
Status
Not open for further replies.
Back
Top