Author Topic: how to use ParallelDevicePerformanceProfile  (Read 4229 times)

0 Members and 1 Guest are viewing this topic.

Offline njuxyh

  • QuantumATK Guru
  • ****
  • Posts: 163
  • Reputation: 0
    • View Profile
how to use ParallelDevicePerformanceProfile
« 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?

Offline Daniele Stradi

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 286
  • Country: dk
  • Reputation: 3
    • View Profile
Re: how to use ParallelDevicePerformanceProfile
« Reply #1 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

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile