AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
How to set gpu abaqus 6.143/31/2024 ![]() ![]() This spawns the new processes, and each runs the function and writes the result to file as expected. The example code below works as expected when run from the command line using either of the following: C:\some\path>python multi.py # abaqus python multi.py # <- Using Python bundled with Abaqus This way, I can run the same script from the regular system Python installation as well as from the Python bundled with Abaqus. To try to get multiprocessing working, I've attempted to run a script that avoids accessing any Abaqus objects, and instead just performs a calculation and prints the result to file 2. The script itself uses various objects/methods available only through Abaqus's proprietary cae module, which can only be loaded by starting up the Python bundled with Abaqus/CAE first, which then executes my script with Python's execfile. However, once spawned the processes just hang. I've developed a long-running script that I'm attempting to split into simultaneous, independent tasks using Python's multiprocessing module. I am using a commercial application called Abaqus/CAE 1 with a built-in Python 2.6 interpreter and API. ![]()
0 Comments
Read More
Leave a Reply. |