File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ ##===---------- dparray.py - dpctl -------*- Python -*----===##
2
+ ##
3
+ ## Data Parallel Control (dpCtl)
4
+ ##
5
+ ## Copyright 2020 Intel Corporation
6
+ ##
7
+ ## Licensed under the Apache License, Version 2.0 (the "License");
8
+ ## you may not use this file except in compliance with the License.
9
+ ## You may obtain a copy of the License at
10
+ ##
11
+ ## http://www.apache.org/licenses/LICENSE-2.0
12
+ ##
13
+ ## Unless required by applicable law or agreed to in writing, software
14
+ ## distributed under the License is distributed on an "AS IS" BASIS,
15
+ ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ ## See the License for the specific language governing permissions and
17
+ ## limitations under the License.
18
+ ##
19
+ ##===----------------------------------------------------------------------===##
20
+ ###
21
+ ### \file
22
+ ### This file implements a dparray - USM aware implementation of ndarray.
23
+ ##===----------------------------------------------------------------------===##
24
+
1
25
import numpy as np
2
26
from inspect import getmembers , isfunction , isclass , isbuiltin
3
27
from numbers import Number
Original file line number Diff line number Diff line change
1
+ ##===---------- test_dparray.py - dpctl -------*- Python -*----===##
2
+ ##
3
+ ## Data Parallel Control (dpCtl)
4
+ ##
5
+ ## Copyright 2020 Intel Corporation
6
+ ##
7
+ ## Licensed under the Apache License, Version 2.0 (the "License");
8
+ ## you may not use this file except in compliance with the License.
9
+ ## You may obtain a copy of the License at
10
+ ##
11
+ ## http://www.apache.org/licenses/LICENSE-2.0
12
+ ##
13
+ ## Unless required by applicable law or agreed to in writing, software
14
+ ## distributed under the License is distributed on an "AS IS" BASIS,
15
+ ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ ## See the License for the specific language governing permissions and
17
+ ## limitations under the License.
18
+ ##
19
+ ##===----------------------------------------------------------------------===##
20
+ ###
21
+ ### \file
22
+ ### A basic unit test for dpctl.dparray.
23
+ ##===----------------------------------------------------------------------===##
24
+
1
25
import unittest
2
26
from dpctl import dparray
3
27
import numpy
You can’t perform that action at this time.
0 commit comments