QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: njuxyh on March 22, 2019, 11:05

Title: how to use ParallelDevicePerformanceProfile
Post by: njuxyh on March 22, 2019, 11:05
Hi supporter:
in the webinar, there is an introduction about ParallelDevicePerformanceProfile , but I do not know how to use it.
because I have not found the option in the vnl, it is done by writing scripts manually?
Title: Re: how to use ParallelDevicePerformanceProfile
Post by: Daniele Stradi on March 22, 2019, 11:48
Hi,

yes, it has to be done by scripting. The easier workflow is:

1) Create the script you need using the Script generator.

2) Send it to the editor

3) Comment out the line:
device_configuration.update()

4) Add the following line, including the desired values for processes and threads:
profile = ParallelDevicePerformanceProfile(device_configuration, processes_and_threads=[(1, 1), (1, 2), (2, 1)])
 
Best,
Daniele
Title: Re: how to use ParallelDevicePerformanceProfile
Post by: Jess Wellendorff on March 25, 2019, 11:08
See also the documentation for that functionality: https://docs.quantumatk.com/manual/Types/ParallelDevicePerformanceProfile/ParallelDevicePerformanceProfile.html