130 likes | 271 Views
Performance optimization on fish modeling software. Stephen Beery. In conjunction with the Ocean Modeling Group at University of Maine. Process & Topics. Background of project ID subroutines Conversion of code Implementation of CUDA Software testing Future research. Background.
E N D
Performance optimization on fish modeling software Stephen Beery In conjunction with the Ocean Modeling Group at University of Maine
Process & Topics • Background of project • ID subroutines • Conversion of code • Implementation of CUDA • Software testing • Future research
Background • Part of Yi Xu’s research • Peruvian Anchovies, IBM system • Good for parallelization • Lots of fishes, need more processor power • What is CUDA?
Identify Effective Subroutines • What is a subroutine? • ‘develop’ routine • ‘initspawn’ routine
Conversion of Code • Only support for C as of August, 2009 • FORTRAN must be converted • Methods • Rewrote routines in C • Called C code from FORTRAN • Data accessed from common blocks/structs
Structure of CUDA file Import necessary libraries Declare any variables to be used while computing on the device Allocate memory on the graphics device CUDA core code Copy data over to GPU Execute the CUDA kernel (calls the global function) Original code to be improved Copy memory back to host Free the GPU memory
Interaction between FORTRAN and CUDA 1 2 4 3 6 5
Job Timing *data not conclusive
Issues & Difficulties • Inter-language data-retention • 3 different languages in use • Referencing several types of memory • I/O and CUDA
What happens next? • Research will continue on project • FORTRAN API to be released • Eliminates need for code conversion • Existing code will be important for reference • CUDA knowledge will be passed on • Data problems fixed • More concrete results • Wider range of testing possibilities
Acknowledgements • Thank you: • U Maine SuperMe faculty • Ocean Modeling Group • Steve Cousins, M.S. • Fei Chai, Ph.D. • Huijie Xue, Ph.D. • Supporters • National Science Foundation • U.S. Department of Defense • My REU friends