README.md 946 Bytes
Newer Older
1
2
3
4
5
6
# CK Python API
This API uses Python to generate instances of operations present in CK, compiles them into a shared library, and an executable to run the instances.
There are 2 directories: shared and normal. The normal directory contains one instance that will compile into an excutable to be run, while the shared directory 
generates multiple instances and compiles them into a shared library.

## Normal
Astha Rai's avatar
Astha Rai committed
7
8
9
10
11
To generate the cpp file and executable: 
`python3 gemm_ex.py`

Run the executable (same layout as CK examples: verification, initialization, run kernel # of times)
`./ex 0 1 5`
12
13

## Shared
Astha Rai's avatar
Astha Rai committed
14
15
16
17
18
19
20
21
22
Generate all instances, make shared library and executable
`python3 driver.py`

Run the executable (same layout as CK examples)
`./example 0 1 5`

* There's a main.cpp file needed for the executable included, so be careful when deleting the generated cpp files for the instances

The design for parts of this code was taken from Meta's AIT library
23