-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding proper typing for dpctl.SyclQueue Revert Tried to follow the interval example from numba Redo the implementation by following how the ArrayModel was done Fix arg names keep driver.py Added unboxing function for SyclQueueType Adding minimal test Testing with different pattern
- Loading branch information
1 parent
9d3d507
commit 5b176d0
Showing
9 changed files
with
249 additions
and
20 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,13 @@ | ||
from dpctl import SyclQueue | ||
from numba import njit | ||
|
||
from numba_dpex import dpjit | ||
|
||
if __name__ == "__main__": | ||
|
||
@dpjit | ||
def test(q): | ||
pass | ||
|
||
queue = SyclQueue() | ||
test(queue) |
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,20 @@ | ||
#ifndef NUMBA_DPEX_QUEUESTRUCT_H_ | ||
#define NUMBA_DPEX_QUEUESTRUCT_H_ | ||
/* | ||
* Fill in the *queuestruct* with information from the Numpy array *obj*. | ||
* *queuestruct*'s layout is defined in numba.targets.arrayobj (look | ||
* for the ArrayTemplate class). | ||
*/ | ||
|
||
#include "numpy/npy_common.h" | ||
#include <Python.h> | ||
|
||
typedef struct | ||
{ | ||
PyObject *parent; | ||
PyObject *queue_ref; | ||
PyObject *cotext; | ||
PyObject *device; | ||
} queuestruct_t; | ||
|
||
#endif /* NUMBA_DPEX_QUEUESTRUCT_H_ */ |
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
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