SimpleArray between Python and C++

Yung-Yu Chen

Yung-Yu Chen

HPC software developer.

    Abstract

    Contiguous buffer is what makes code run fast. With the regular and compact layout, data can go through the memory hierarchy in a quick way to the processor. Numpy makes use of it to achieve the runtime almost as fast as C. However, not all algorithms can be easily maintained or designed by using array operations. A more general ways is to use the contiguous buffer as an interface. The dynamic typing system of Python makes it easy to use but hard to optimize. The typed, fixed-shape buffer allows efficient data sharing between the fast code written in C++ and the Python application. In the end, the system is as easy to use as but much faster than Python. The runtime is the same as C++. In this talk, I will show how to design a simple array system in C++ and make it available in Python. It may be made as a general-purpose library, or embedded for ad hoc optimization.

    Description

    Location

    R0

    Date

    Day 1 • 13:45-14:15 (GMT+8)

    Language

    English talk

    Level

    Experienced

    Category

    Science