QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: zwh on April 16, 2025, 07:54

Title: "optimizedeviceconfiguration" module does not have an output file.
Post 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!
Title: Re: "optimizedeviceconfiguration" module does not have an output file.
Post by: Anders Blom on April 29, 2025, 01:44
In your script, you never "nlsave" the final output geometry. But are you sure the "optimizedeviceconfiguration" object is not the optimized one?
Title: Re: "optimizedeviceconfiguration" module does not have an output file.
Post by: zwh on April 30, 2025, 05:20
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.
Title: Re: "optimizedeviceconfiguration" module does not have an output file.
Post by: Anders Blom on May 2, 2025, 18:53
That is odd. Software version? Maybe you can share the file. Or just rerun and add nlsave to the end.
Title: Re: "optimizedeviceconfiguration" module does not have an output file.
Post by: zwh on May 6, 2025, 05:30
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.
Title: Re: "optimizedeviceconfiguration" module does not have an output file.
Post by: Anders Blom on May 6, 2025, 19:50
Yes, you should of course save the optimized configuration, i.e. nlsave("file.hdf5", optimize_device_configuration)