Skip to content

Commit 393b058

Browse files
Fix merge conflicts
2 parents c3cd735 + 5fbef1c commit 393b058

File tree

5 files changed

+64
-14
lines changed

5 files changed

+64
-14
lines changed

dpctl/__init__.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@
3030
from dpctl._sycl_core cimport *
3131
from dpctl._memory import *
3232
from dpctl.dptensor.dparray import *
33+

dpctl/dptensor/dparray.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
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+
125
import numpy as np
226
from inspect import getmembers, isfunction, isclass, isbuiltin
327
from numbers import Number

dpctl/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
## Top-level module of all dpctl Python unit test cases.
2323
##===----------------------------------------------------------------------===##
2424

25+
from .test_dparray import *
2526
from .test_dump_functions import *
2627
from .test_sycl_device import *
2728
from .test_sycl_kernel_submit import *

dpctl/tests/test_dparray.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
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+
125
import unittest
226
from dpctl.dptensor import dparray
327
import numpy
428

529

6-
class TestOverloadList(unittest.TestCase):
30+
class Test_dparray(unittest.TestCase):
731
def setUp(self):
832
self.X = dparray.ndarray((256, 4), dtype="d")
933
self.X.fill(1.0)

setup.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
##===---------- setup.py - dpctl.ocldrv interface -----*- Python -*-----===##
22
##
3-
# Data Parallel Control Library (dpCtl)
3+
## Data Parallel Control Library (dpCtl)
44
##
5-
# Copyright 2020 Intel Corporation
5+
## Copyright 2020 Intel Corporation
66
##
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
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
1010
##
11-
# http://www.apache.org/licenses/LICENSE-2.0
11+
## http://www.apache.org/licenses/LICENSE-2.0
1212
##
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.
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.
1818
##
1919
##===----------------------------------------------------------------------===##
2020
###
21-
# \file
22-
# This file builds the dpctl and dpctl.ocldrv extension modules.
21+
### \file
22+
### This file builds the dpctl and dpctl.ocldrv extension modules.
2323
##===----------------------------------------------------------------------===##
2424
import os
2525
import os.path

0 commit comments

Comments
 (0)