-
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.
Build: (07ce9ab) Improving C interface with capsule approach (like Nu…
…mPy)
- Loading branch information
Showing
123 changed files
with
14,575 additions
and
1,423 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 7f88ada47e9fbacf4ee3600e8e857fc5 | ||
config: 6159ba84f071280aad1c8baba785de4c | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
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
48 changes: 48 additions & 0 deletions
48
_sources/exhale/file_src_pocky_ext_include_pocky_api.h.rst.txt
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,48 @@ | ||
|
||
.. _file_src_pocky_ext_include_pocky_api.h: | ||
|
||
File pocky_api.h | ||
================ | ||
|
||
|exhale_lsh| :ref:`Parent directory <dir_src_pocky_ext_include>` (``src/pocky/ext/include``) | ||
|
||
.. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS | ||
|
||
Definition (``src/pocky/ext/include/pocky_api.h``) | ||
-------------------------------------------------- | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
program_listing_file_src_pocky_ext_include_pocky_api.h.rst | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Classes | ||
------- | ||
|
||
|
||
- :ref:`exhale_struct_structpocky__api__object` | ||
|
||
|
||
Functions | ||
--------- | ||
|
||
|
||
- :ref:`exhale_function_pocky__api_8h_1a1a332a875ad207687ddbcbd1508ec671` | ||
|
||
|
||
Variables | ||
--------- | ||
|
||
|
||
- :ref:`exhale_variable_pocky__api_8h_1aece7ff3e3aad730351705c07c2cffdd8` | ||
|
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
14 changes: 14 additions & 0 deletions
14
_sources/exhale/function_pocky__api_8h_1a1a332a875ad207687ddbcbd1508ec671.rst.txt
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,14 @@ | ||
.. _exhale_function_pocky__api_8h_1a1a332a875ad207687ddbcbd1508ec671: | ||
|
||
Function import_pocky | ||
===================== | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_api.h` | ||
|
||
|
||
Function Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenfunction:: import_pocky(void) | ||
:project: pocky |
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
14 changes: 14 additions & 0 deletions
14
...es/exhale/function_pocky__bufpair_8h_1a5e6d23295e03304777b28ee55889cef1.rst.txt
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,14 @@ | ||
.. _exhale_function_pocky__bufpair_8h_1a5e6d23295e03304777b28ee55889cef1: | ||
|
||
Function pocky_bufpair_copy_to_device | ||
===================================== | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_bufpair.h` | ||
|
||
|
||
Function Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenfunction:: pocky_bufpair_copy_to_device(pocky_bufpair_object *, PyObject *) | ||
:project: pocky |
14 changes: 14 additions & 0 deletions
14
...es/exhale/function_pocky__bufpair_8h_1a7ccc00ba502d039c1e8e6e9fdca0efbf.rst.txt
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,14 @@ | ||
.. _exhale_function_pocky__bufpair_8h_1a7ccc00ba502d039c1e8e6e9fdca0efbf: | ||
|
||
Function pocky_bufpair_set_dirty | ||
================================ | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_bufpair.h` | ||
|
||
|
||
Function Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenfunction:: pocky_bufpair_set_dirty(pocky_bufpair_object *, PyObject *, void *) | ||
:project: pocky |
14 changes: 14 additions & 0 deletions
14
...es/exhale/function_pocky__bufpair_8h_1a8aefbfdb3f119edb555833183129c419.rst.txt
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,14 @@ | ||
.. _exhale_function_pocky__bufpair_8h_1a8aefbfdb3f119edb555833183129c419: | ||
|
||
Function pocky_bufpair_get_dirty | ||
================================ | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_bufpair.h` | ||
|
||
|
||
Function Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenfunction:: pocky_bufpair_get_dirty(pocky_bufpair_object *, void *) | ||
:project: pocky |
14 changes: 14 additions & 0 deletions
14
...es/exhale/function_pocky__bufpair_8h_1aca4d73b48d6df04e7725205c0a6e9998.rst.txt
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,14 @@ | ||
.. _exhale_function_pocky__bufpair_8h_1aca4d73b48d6df04e7725205c0a6e9998: | ||
|
||
Function pocky_bufpair_copy_from_device | ||
======================================= | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_bufpair.h` | ||
|
||
|
||
Function Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenfunction:: pocky_bufpair_copy_from_device(pocky_bufpair_object *, PyObject *) | ||
:project: pocky |
57 changes: 57 additions & 0 deletions
57
_sources/exhale/program_listing_file_src_pocky_ext_include_pocky_api.h.rst.txt
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,57 @@ | ||
|
||
.. _program_listing_file_src_pocky_ext_include_pocky_api.h: | ||
|
||
Program Listing for File pocky_api.h | ||
==================================== | ||
|
||
|exhale_lsh| :ref:`Return to documentation for file <file_src_pocky_ext_include_pocky_api.h>` (``src/pocky/ext/include/pocky_api.h``) | ||
|
||
.. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS | ||
|
||
.. code-block:: c | ||
#ifndef POCKY_API_H | ||
#define POCKY_API_H | ||
typedef struct | ||
{ | ||
PyTypeObject *context_type; | ||
PyTypeObject *bufpair_type; | ||
cl_int (*opencl_kernels_from_fragments)(cl_uint, const char **, | ||
cl_context, cl_program *, cl_uint *, cl_kernel **); | ||
cl_int (*opencl_kernels_from_files)(cl_uint, const char **, | ||
cl_context, cl_program *, cl_uint *, cl_kernel **); | ||
cl_int (*opencl_kernel_lookup_by_name)(cl_uint, | ||
cl_kernel *, const char *, cl_kernel *); | ||
cl_int (*opencl_kernels_free_all)(cl_uint *, cl_kernel **); | ||
cl_int (*opencl_program_free)(cl_program *); | ||
int (*bufpair_empty_like)(pocky_context_object *, | ||
pocky_bufpair_object *, pocky_bufpair_object **); | ||
int (*bufpair_empty_from_shape)(pocky_context_object *, | ||
size_t, long *, pocky_bufpair_object **); | ||
const char *(*opencl_error_to_string)(cl_int); | ||
} | ||
pocky_api_object; | ||
#ifndef NO_IMPORT_POCKY | ||
pocky_api_object *pocky_api; | ||
static int import_pocky(void) | ||
{ | ||
pocky_api = (pocky_api_object *) PyCapsule_Import("pocky.ext._C_API", 0); | ||
return (pocky_api == NULL) ? -1 : 0; | ||
} | ||
#else | ||
extern pocky_api_object *pocky_api; | ||
#endif /* NO_IMPORT_POCKY */ | ||
#endif /* POCKY_API_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
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,17 @@ | ||
.. _exhale_struct_structpocky__api__object: | ||
|
||
Struct pocky_api_object | ||
======================= | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_api.h` | ||
|
||
|
||
Struct Documentation | ||
-------------------- | ||
|
||
|
||
.. doxygenstruct:: pocky_api_object | ||
:project: pocky | ||
:members: | ||
:protected-members: | ||
:undoc-members: |
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
14 changes: 14 additions & 0 deletions
14
_sources/exhale/variable_pocky__api_8h_1aece7ff3e3aad730351705c07c2cffdd8.rst.txt
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,14 @@ | ||
.. _exhale_variable_pocky__api_8h_1aece7ff3e3aad730351705c07c2cffdd8: | ||
|
||
Variable pocky_api | ||
================== | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_api.h` | ||
|
||
|
||
Variable Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenvariable:: pocky_api | ||
:project: pocky |
14 changes: 14 additions & 0 deletions
14
...es/exhale/variable_pocky__context_8h_1acf2efc722d14ac05b5d6926066873461.rst.txt
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,14 @@ | ||
.. _exhale_variable_pocky__context_8h_1acf2efc722d14ac05b5d6926066873461: | ||
|
||
Variable pocky_context_getsetters | ||
================================= | ||
|
||
- Defined in :ref:`file_src_pocky_ext_include_pocky_context.h` | ||
|
||
|
||
Variable Documentation | ||
---------------------- | ||
|
||
|
||
.. doxygenvariable:: pocky_context_getsetters | ||
:project: pocky |
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.