2018 · 17 citations · 9 references
EngineeringComputer EngineeringComputer ScienceCompilersComputer ArchitectureField-programmable Gate ArraysAccelerator ArchitectureAccelerator IntegrationApplication Programming InterfacesFpga ArchitectureFpga Programming ModelsHardware AccelerationAcceleratorsC-based Fpga ProgrammingCompilation For Reconfigurable HardwareCompiler SupportDesign PrinciplesFpga Accelerator GenerationOpen Source Research InfrastructureSystem Call Abstractions
We present Hot & Spicy an open-source infrastructure and tool suite for integrating FPGA accelerators in Python applications, provided entirely as Python source code and available at https://spicy.isi.edu. This suite of tools eases the packaging, integration, and binding of accelerators and their C/C++ based drivers callable from a Python application. The Hot & Spicy tools can: (1) translate Python functions to HLS-suitable C functions, (2) generate Python C wrapper bindings, (3) automate the FPGA EDA tool flow, and (4) retarget Python source code to use accelerated libraries. For FPGA experts, this enables increased productivity and supports research on each stage of the flow by providing a framework to integrate additional compilers and optimizations. For everyone else this enables fast, consistent, acceleration of applications on FPGAs. We describe the design principles and flows for supporting high-level Python abstractions in an FPGA development flow. Then we evaluate the overheads of calling C/C++ routines from Python. Lastly, we show the results of accelerating a kernel in a Python image processing application and achieve a 39,137× speedup over the original Python implementation, and 6× speedup over an high-performance, hand-optimized OpenCV library implementation.
9
Cython: The Best of Both Worlds
Stefan Behnel, Robert Bradshaw, Craig Citro et al. · Computing in Science & Engineering · 2010 · 1.3K citations · Full text
Andrew Canis, Jongsok Choi, Mark Aldham et al. · 2011 · 524 citations