{"id":20685425,"url":"https://github.com/yas-sim/python-dpcpp-extension-sample-code","last_synced_at":"2025-12-31T00:45:13.502Z","repository":{"id":185235209,"uuid":"396219364","full_name":"yas-sim/python-dpcpp-extension-sample-code","owner":"yas-sim","description":"Python extension sample code using Intel oneAPI DPC++. The extension does a simple image processing using DPC++ kernel.","archived":false,"fork":false,"pushed_at":"2021-08-17T08:54:36.000Z","size":1977,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T16:17:46.106Z","etag":null,"topics":["box-filter","convolution-filter","dpcpp","gpu-acceleration","gpu-programming","heterogeneous","heterogeneous-parallel-programming","image-processing","numpy","numpy-capi","oneapi","opencl","python","python-extension","sample-code","sycl"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yas-sim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-08-15T04:51:59.000Z","updated_at":"2023-05-18T12:59:28.000Z","dependencies_parsed_at":"2023-08-01T07:09:27.699Z","dependency_job_id":null,"html_url":"https://github.com/yas-sim/python-dpcpp-extension-sample-code","commit_stats":null,"previous_names":["yas-sim/python-dpcpp-extension-sample-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fpython-dpcpp-extension-sample-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fpython-dpcpp-extension-sample-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fpython-dpcpp-extension-sample-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fpython-dpcpp-extension-sample-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yas-sim","download_url":"https://codeload.github.com/yas-sim/python-dpcpp-extension-sample-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242940021,"owners_count":20209882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["box-filter","convolution-filter","dpcpp","gpu-acceleration","gpu-programming","heterogeneous","heterogeneous-parallel-programming","image-processing","numpy","numpy-capi","oneapi","opencl","python","python-extension","sample-code","sycl"],"created_at":"2024-11-16T22:27:18.629Z","updated_at":"2025-12-16T04:57:44.294Z","avatar_url":"https://github.com/yas-sim.png","language":"C++","readme":"# Sample code of Python extension module using DPC++ (Data Parallel C++)  \r\n\r\n### Description:  \r\nThis project demonstrates how to write a Python extension module with [DPC++](https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/dpc-compiler.html#gs.8eyara). The Python extension will take an OpenCV image stored in a Numpy array and do image processing. The actual image processing code is using DPC++ kernel and the rest is written in standard C++ code.  \r\nDPC++ is a Clang based compiler developed by Intel which includs Khronos [SYCL](https://www.khronos.org/sycl/) extension and Intel specific SYCL extensions. **It enables seamless heterogeneous programming and can support not only CPU but also integrated GPU, FPGA and more to come**.  \r\n\r\n* Result example\r\n![image](./resources/result.png)\r\n\r\n### Prerequisites:\r\n- DPC++ compiler (from oneAPI Base Toolkit 2021.3)\r\n\r\n### How to build and run:\r\n```sh\r\nbuild.sh\r\n```\r\n * `python_dpcpp_module.so` will be generated.\r\n```sh\r\npython3 test.py\r\n```\r\n\r\n### Note:  \r\nTested on Ubuntu 20.04.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Fpython-dpcpp-extension-sample-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyas-sim%2Fpython-dpcpp-extension-sample-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Fpython-dpcpp-extension-sample-code/lists"}