QuantumATK Forum
QuantumATK => General Questions and Answers => Topic started by: zwh on April 16, 2025, 07:54
-
Hi everyone, I hope you can help me resolve this issue.
When using the "optimizedeviceconfiguration" module for device optimization, the optimized device model is missing from the HDF5 file. I'm not sure what the problem is—could it be that I missed something during the setup?
Please help me take a look. Thank you for your help!
-
In your script, you never "nlsave" the final output geometry. But are you sure the "optimizedeviceconfiguration" object is not the optimized one?
-
Dear Anders Blom,
Thank you very much for your response. When I try to open the optimizedeviceconfiguration in my HDF5 file, it shows an error. However, I have never encountered this type of issue before. I hope you can assist me with this.
Best regards.
-
That is odd. Software version? Maybe you can share the file. Or just rerun and add nlsave to the end.
-
I add nlasve at the end of the script and save the file to the new file name ( optdevice2.hdf5 ), but there is only the initial unoptimized structure in the new file, and there is no optimized HDF5 file.
-
Yes, you should of course save the optimized configuration, i.e. nlsave("file.hdf5", optimize_device_configuration)