13.07.2015 Views

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Performance Measurement <strong>and</strong> MetricsVisual Profiler…• reports data by SM (with exception of L2 <strong>and</strong> DRAM counters)• needs more executions to collect everything (so… it is a bit slow)– REMEMBER: blocks <strong>and</strong> warps are scheduled at run-time!• to compute derivated statistics automatically you need it (<strong>and</strong> X)Manually inspection…• Re-code your kernel to obtain 3 versions…– a base kernel which performs the desired overall operation (T);– a memory kernel which has the same device memory access patterns as thebase kernel but no math operations (M);– a math kernel which performs the math operations of the base kernel withoutaccessing global memory (O).• Run <strong>and</strong> evaluate the gputime (be smart ! <strong>CUDA</strong> event)February 10, 2012 PRACE Winter School 201230

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!