AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

TST: Time the execution of operators during adjoint tests #83

Closed carterbox closed 4 years ago

carterbox commented 4 years ago

Purpose

@nikitinvv wants to know how long it takes for each of the operators to execute.

Approach

I have added walltime markers before and after execution of operators in the adjoint tests. I'm not sure that adding CUDA synchronization points was necessary, so I did not include them. The problem sizes for each operator can be adjusted by editing the setUp() function of each test. Not sure if it's necessary to allow changing the problem size from the command line.

Pre-Merge Checklists

Submitter

Reviewer

carterbox commented 4 years ago

I think the actual best way to time the operators is the use nvprof. I'm not sure that this approach is valid.