-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renaming files and public variables to avoid name collisions
- Loading branch information
Showing
18 changed files
with
437 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Ellen M. Price | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# pocky: A Python bridge to OpenCL | ||
|
||
[![build-docs action](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/emprice/pocky/gh-pages/endpoint.json)](https://github.com/emprice/pocky/actions/workflows/docs.yml) | ||
[![License: MIT](https://img.shields.io/github/license/emprice/pocky?style=for-the-badge)](https://opensource.org/licenses/MIT) | ||
![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/emprice/pocky/main?logo=codefactor&style=for-the-badge) | ||
![GitHub Repo stars](https://img.shields.io/github/stars/emprice/pocky?style=for-the-badge) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef POCKY_BUFPAIR_H | ||
#define POCKY_BUFPAIR_H | ||
|
||
typedef struct | ||
{ | ||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
PyObject_HEAD | ||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ | ||
pocky_context_object *context; | ||
PyObject *host; | ||
cl_mem device; | ||
size_t host_size; | ||
size_t device_size; | ||
} | ||
pocky_bufpair_object; | ||
|
||
extern PyTypeObject pocky_bufpair_type; | ||
|
||
extern PyObject *pocky_bufpair_new(PyTypeObject *type, | ||
PyObject *args, PyObject *kwargs); | ||
extern int pocky_bufpair_init(pocky_bufpair_object *self, | ||
PyObject *args, PyObject *kwargs); | ||
extern void pocky_bufpair_dealloc(pocky_bufpair_object *self); | ||
|
||
extern PyObject *pocky_bufpair_array(pocky_bufpair_object *self, PyObject *noargs); | ||
|
||
extern PyObject *pocky_bufpair_get_host(pocky_bufpair_object *self, void *closure); | ||
extern int pocky_bufpair_set_host(pocky_bufpair_object *self, | ||
PyObject *value, void *closure); | ||
|
||
extern PyGetSetDef pocky_bufpair_getsetters[]; | ||
extern PyMethodDef pocky_bufpair_methods[]; | ||
|
||
extern int pocky_bufpair_empty_like(pocky_context_object *context, | ||
pocky_bufpair_object *like, pocky_bufpair_object **bufpair); | ||
extern int pocky_bufpair_empty_from_shape(pocky_context_object *context, | ||
size_t ndim, size_t *shape, pocky_bufpair_object **bufpair); | ||
|
||
#endif /* POCKY_BUFPAIR_H */ | ||
|
||
/* vim: set ft=c.doxygen: */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.