tinygrad / gpuctypes

ctypes wrappers for HIP, CUDA, and OpenCL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package installation from source error

pkraison opened this issue · comments

I cloned the repository and tried installing on my Ubuntu 20.04 with Python 3.7.13. It gave the error regarding the python version requirement.

I got the point, It needs python 3.8+ because of the syntex (colon assignment operator, type hint). I noticed that with python 3.8.10 it gives error regarding 'Optional' type hint. I switched to python 3.9 and both the tests passed (cuda and opencl). Following is my system info,

  • Ubuntu 20.04
  • Python 3.9.18
  • cuda 11.4

It might be good idea to add this requirement(use with python 3.9+)

The types and walrus should only be the tests, shouldn't affect the package

yes, tried without it and it worked. thanks!