titan

Up since 11/8/17 02:45 pm

eos

Up since 11/14/17 11:20 pm

rhea

Up since 10/17/17 05:40 pm

hpss

Up since 11/20/17 09:15 am

atlas1

Up since 11/15/17 07:25 am

atlas2

Up since 11/27/17 10:45 am
OLCF User Assistance Center

Can't find the information you need below? Need advice from a real person? We're here to help.

OLCF support consultants are available to respond to your emails and phone calls from 9:00 a.m. to 5:00 p.m. EST, Monday through Friday, exclusive of holidays. Emails received outside of regular support hours will be addressed the next business day.

Loading Events

OpenACC Tutorials

Details

Start:
July 15, 2013 @ 9:00 am
End:
July 18, 2013 @ 2:00 pm

Venue

JICS Auditorium, Building 5100
1 Bethel Valley Road
Oak Ridge, TN 37831 United States

Organizer

Fernanda Foertter
Phone:
(865) 576-9391
Email:
foertterfs@ornl.gov

Workshop for porting applications to Titan using Cray OpenACC and Cray Performance Tools

This three day workshop is designed to be a hands-on workshop for users of Titan to port and optimize their applications to Titan. The workshop will include the use of Cray CCE OpenACC compiler and tools. Each morning will be lecture/demonstrations of utilizing the tools and compiler and the afternoon will be dedicated to attendees accessing the Titan system to exercise the tools and compiler. The workshop will concentrate on a fifteen step process. Whether OpenACC is used for ultimate accelerator utilization – this work must be performed to refactor the application to achieve good performance on any hybrid-multicore system.

Agenda

1) First and foremost – Profile the application
a) Must identify looping structure within the time step loop
b) Use -h profile_generate on compile and -Ocalltree or -Ocallers on craypat

2) Use Reveal to identify scoping of variables in the major loop – may call subroutines and functions
a) The idea is to first generate OpenMP version of the loop and then add some OpenACC

3) Use OpenACC to identify data motion require to run with companion accelerator
a) Once scoping is obtained, the OpenACC compiler will indicate what data would need to be moved to run on the accelerator – user must have the variable scoping correct

4) Once one loop is analyzed, now look at next highest compute loop, perform steps 2 and 3.

5) Soon multiple loops can be combined within a OpenACC data region for eliminating transfers to and from the host.

6) Work outward until a data region encompasses a communication, I/O or looping structure more suited for the host
a) Must use updates to move data to and from the host to supply host with up-to-date data

7) Move data region outside time step loop
a) Now must account for all updates to keep host and accelerator with consistent data

8) Test versions after each step – don’t worry about performance yet – just accuracy

9) The compiler may introduce data transfer so look at -rm listing for each individual OpenACC loop.

10) Optimize/Minimize data transfers first by using present on data clause.

11) Gather perftools statistics on code and identify bottlenecks

12) If bottleneck is data copies look at step 9

13) If bottleneck is kernel performance
a) Look at -rm and see what the compiler did to optimize the loop
b) Ideally we want three levels of parallelism, gang, worker, vector
c) Inner loop needs to be g on listing
d) If inner loop is indicated by a loop level, that means that it is running in scalar – BAD
e) Consider incorporating accelerator library calls
f) Consider incorporating CUDA routines

14) Consider introducing CUDA streams
a) Either by taking an outer loop that cannot be parallelized due to communication and running that in a streaming mode
b) Taking several independent operations and running that in a stream mode

15) Start looking at timelines showing communication, host execution and accelerator
a) What can be overlapped

  Registration

On-site registration is closed to off-site visitors.

Registration is now closed.

  Hotels Near/Directions to ORNL

Visiting ORNL

Please email me (hgv@ornl.gov) if you plan on making reservations at the ORNL Guest House. I need to fill out different forms to give you access to the lab.  Thanks, Sherry Ray

Files
Workshop materials can be found here:
https://github.com/olcf/OpenACC_workshop_072013
Social Chat can be found here:
https://hackpad.com/OpenACC-Workshop-072013-QpfUa8SrKGH