Skip to content

Comparison of SIMD and naive for-loop implementation of the same function written in C.

Notifications You must be signed in to change notification settings

vityaman-edu/fpa-example-simd-python-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPA Optional Task

Descriptions

Was implemented 2 function written in C programming language to count non-negative numbers. The first is just trivial for-loop and the second uses SIMD. They was packed in native Python module and tested using unittest from Python stdlib. Was done on the second semester of ITMO CSE Bachelor.

SIMD diving in

Links

How to create an external c module for python

Links Guide

Compile c implementation

gcc -Wall -I /usr/include/python3.8/ a.c -o a

Add module to interpreter

python3 setup.py install

About

Comparison of SIMD and naive for-loop implementation of the same function written in C.

Topics

Resources

Stars

Watchers

Forks