From 932fc30e4094f7690f3176dc35c810ba02ed10f3 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Sat, 25 Nov 2023 16:35:53 -0800 Subject: [PATCH] readme more --- README.md | 6 +++++- generate.sh | 4 ++++ setup.py | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 generate.sh diff --git a/README.md b/README.md index 34b78d0..514441f 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,12 @@ import gpuctypes.cuda as cuda import gpuctypes.opencl as opencl ``` +### How it works + +gpuctypes uses [ctypeslib](https://github.com/trolldbois/ctypeslib) to autogenerate Python files from the headers of the respective libraries. + ### Current versions * ROCm 5.7.1 * CUDA 11.5 -* OpenCL whatever is in Ubuntu 22.04 +* OpenCL (whatever is in Ubuntu 22.04) diff --git a/generate.sh b/generate.sh new file mode 100644 index 0000000..ca70e99 --- /dev/null +++ b/generate.sh @@ -0,0 +1,4 @@ +#!/bin/bash -e +./generate_cuda.sh +./generate_hip.sh +./generate_opencl.sh diff --git a/setup.py b/setup.py index 310068d..df065ad 100644 --- a/setup.py +++ b/setup.py @@ -12,4 +12,3 @@ packages = ['gpuctypes'], python_requires='>=3.8', include_package_data=True) -