Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuvix25/py2cuda
Convert Python 3 code to CUDA code.
https://github.com/yuvix25/py2cuda
converter cuda gpu gpu-acceleration python python3
Last synced: about 1 month ago
JSON representation
Convert Python 3 code to CUDA code.
- Host: GitHub
- URL: https://github.com/yuvix25/py2cuda
- Owner: Yuvix25
- License: gpl-3.0
- Created: 2021-07-13T09:37:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-13T10:04:01.000Z (over 3 years ago)
- Last Synced: 2024-12-27T21:32:10.230Z (about 1 month ago)
- Topics: converter, cuda, gpu, gpu-acceleration, python, python3
- Language: Python
- Homepage:
- Size: 159 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Py2CUDA
Convert python code to CUDA.## Usage
To convert a python file say named `py_file.py` to CUDA, run `python generate_cuda.py --file py_file.py --arch {your_gpu_arch}`, (if `--arch` is not specified, `sm_61` will be used). Output will be saved in `./compiled`.
Example run: `python generate_cuda.py --file ./examples/test.py --arch sm_86`