-
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.
Merge pull request #963 from chudur-budur/github-930
Proper DpctlSyclQueue support
- Loading branch information
Showing
10 changed files
with
386 additions
and
71 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
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,28 @@ | ||
// SPDX-FileCopyrightText: 2023 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//===----------------------------------------------------------------------===// | ||
/// | ||
/// \file | ||
/// A helper macro to print debug prints. | ||
/// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#pragma once | ||
|
||
/* Debugging facilities - enabled at compile-time */ | ||
/* #undef NDEBUG */ | ||
#if 0 | ||
#include <stdio.h> | ||
#define DPEXRT_DEBUG(X) \ | ||
{ \ | ||
X; \ | ||
fflush(stdout); \ | ||
} | ||
#else | ||
#define DPEXRT_DEBUG(X) \ | ||
if (0) { \ | ||
X; \ | ||
} | ||
#endif |
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 @@ | ||
#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 <Python.h> | ||
|
||
typedef struct | ||
{ | ||
PyObject *parent; | ||
void *queue_ref; | ||
} 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
Oops, something went wrong.