Discover the Programming Pattern in Matlab Which Can Generate Vector Instruction

Mentor 1

Brian Armstrong

Location

Union Wisconsin Room

Start Date

29-4-2016 1:30 PM

End Date

29-4-2016 3:30 PM

Description

In recent years, development of semiconductor chips brings us more and more powerful microprocessors which can allow us to do various project, and we can use great software for engineering or science, and Matlab from Mathwork is one of them. It is widely used in engineering and scientific fields, but is slow. With the help form a tool embedded in Matlab called coder, a Matlab program can be translated to a C++ program but it does not make a good use of the vector processors which are commonly used in computers. This research’s goal is to make computers use vector instructions instead of scalar instructions which can boost the performance 4 times even 8 times. By doing this, it can help engineers and scientists to make their own programs more efficient. In this project, I write different programs both in C language and Matlab language. The complier I will use is the GNU g++ complier, and by the help of g++ and the debugger gdb, it can show which programming pattern in C can generate vector instruction. Then with the same idea, by programming in Matlab and using the coder to generate the C file, we can trace what programming pattern in Matlab can generate C code which will eventually generate vector instruction. And by the end, I hope this research can give people a better understanding and technique to do vector program.

This document is currently not available here.

Share

COinS
 
Apr 29th, 1:30 PM Apr 29th, 3:30 PM

Discover the Programming Pattern in Matlab Which Can Generate Vector Instruction

Union Wisconsin Room

In recent years, development of semiconductor chips brings us more and more powerful microprocessors which can allow us to do various project, and we can use great software for engineering or science, and Matlab from Mathwork is one of them. It is widely used in engineering and scientific fields, but is slow. With the help form a tool embedded in Matlab called coder, a Matlab program can be translated to a C++ program but it does not make a good use of the vector processors which are commonly used in computers. This research’s goal is to make computers use vector instructions instead of scalar instructions which can boost the performance 4 times even 8 times. By doing this, it can help engineers and scientists to make their own programs more efficient. In this project, I write different programs both in C language and Matlab language. The complier I will use is the GNU g++ complier, and by the help of g++ and the debugger gdb, it can show which programming pattern in C can generate vector instruction. Then with the same idea, by programming in Matlab and using the coder to generate the C file, we can trace what programming pattern in Matlab can generate C code which will eventually generate vector instruction. And by the end, I hope this research can give people a better understanding and technique to do vector program.