Open ngkazu opened 4 weeks ago
if you would like not to use GPU solver, you neet to set gpus=0. but when you set gpus= 0 in analyze_setup, gpu prameter in HPC setting isn't changed
In particular, Icepak will reference the GPU solver if the number of GPUs is greater than 1. It should set this to zero not to use the GPU solver
maybe, we need to change "NumGPUs" in "pyaedt/misc/pyaedt_local_config.acf" like below:
$begin 'DSOMachineList' $begin 'DSOMachineInfo' MachineName='localhost' NumEngines=1 NumCores=4 IsEnabled=true RAMPercent=90 NumJobCores=0 NumGPUs=0 $end 'DSOMachineInfo' $end 'DSOMachineList'
from pyaedt import Icepak app= Icepak() num_cores= 4 num_gpus= 0 app.analyze_setup(name= setup_name, cores= num_cores, gpus= num_gpus, use_auto_settings= True)
Windows
3.10
annotated-types==0.7.0 ansys-pythonnet==3.1.0rc3 attrs==23.2.0 certifi==2024.6.2 cffi==1.16.0 charset-normalizer==3.3.2 click==8.1.7 click-plugins==1.1.1 cligj==0.7.2 clr-loader==0.2.6 colorama==0.4.6 contourpy==1.2.1 cycler==0.12.1 defusedxml==0.7.1 et-xmlfile==1.1.0 fast_simplification==0.1.7 fiona==1.9.6 fonttools==4.53.0 fpdf2==2.7.9 geopandas==0.14.4 idna==3.7 imageio==2.34.1 joblib==1.4.2 jsonschema==4.22.0 jsonschema-specifications==2023.12.1 kiwisolver==1.4.5 matplotlib==3.8.4 networkx==3.3 numpy==1.26.4 openpyxl==3.1.3 osmnx==1.9.3 packaging==24.1 pandas==2.2.2 pillow==10.3.0 platformdirs==4.2.2 plumbum==1.8.3 pooch==1.8.2 psutil==5.9.8 pyaedt==0.9.4 pycparser==2.22 pydantic==2.7.3 pydantic_core==2.18.4 pyedb==0.13.0 pyparsing==3.1.2 pyproj==3.6.1 python-dateutil==2.9.0.post0 pytomlpp==1.0.13 pytz==2024.1 pyvista==0.43.9 pywin32==306 referencing==0.35.1 requests==2.32.3 rpds-py==0.18.1 rpyc==6.0.0 Rtree==1.2.0 scikit-learn==1.5.0 scikit-rf==1.0.0 scipy==1.13.1 scooby==0.10.0 shapely==2.0.4 six==1.16.0 SRTM.py==0.3.7 threadpoolctl==3.5.0 toml==0.10.2 typing_extensions==4.12.2 tzdata==2024.1 urllib3==2.2.1 utm==0.7.0 vtk==9.2.6
Before submitting the issue
Description of the bug
Argument "gpus" does not work when set gpus= 0
if you would like not to use GPU solver, you neet to set gpus=0. but when you set gpus= 0 in analyze_setup, gpu prameter in HPC setting isn't changed
In particular, Icepak will reference the GPU solver if the number of GPUs is greater than 1. It should set this to zero not to use the GPU solver
maybe, we need to change "NumGPUs" in "pyaedt/misc/pyaedt_local_config.acf" like below:
Steps To Reproduce
from pyaedt import Icepak app= Icepak() num_cores= 4 num_gpus= 0 app.analyze_setup(name= setup_name, cores= num_cores, gpus= num_gpus, use_auto_settings= True)
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
annotated-types==0.7.0 ansys-pythonnet==3.1.0rc3 attrs==23.2.0 certifi==2024.6.2 cffi==1.16.0 charset-normalizer==3.3.2 click==8.1.7 click-plugins==1.1.1 cligj==0.7.2 clr-loader==0.2.6 colorama==0.4.6 contourpy==1.2.1 cycler==0.12.1 defusedxml==0.7.1 et-xmlfile==1.1.0 fast_simplification==0.1.7 fiona==1.9.6 fonttools==4.53.0 fpdf2==2.7.9 geopandas==0.14.4 idna==3.7 imageio==2.34.1 joblib==1.4.2 jsonschema==4.22.0 jsonschema-specifications==2023.12.1 kiwisolver==1.4.5 matplotlib==3.8.4 networkx==3.3 numpy==1.26.4 openpyxl==3.1.3 osmnx==1.9.3 packaging==24.1 pandas==2.2.2 pillow==10.3.0 platformdirs==4.2.2 plumbum==1.8.3 pooch==1.8.2 psutil==5.9.8 pyaedt==0.9.4 pycparser==2.22 pydantic==2.7.3 pydantic_core==2.18.4 pyedb==0.13.0 pyparsing==3.1.2 pyproj==3.6.1 python-dateutil==2.9.0.post0 pytomlpp==1.0.13 pytz==2024.1 pyvista==0.43.9 pywin32==306 referencing==0.35.1 requests==2.32.3 rpds-py==0.18.1 rpyc==6.0.0 Rtree==1.2.0 scikit-learn==1.5.0 scikit-rf==1.0.0 scipy==1.13.1 scooby==0.10.0 shapely==2.0.4 six==1.16.0 SRTM.py==0.3.7 threadpoolctl==3.5.0 toml==0.10.2 typing_extensions==4.12.2 tzdata==2024.1 urllib3==2.2.1 utm==0.7.0 vtk==9.2.6