-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 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,26 +1,26 @@ | ||
import arrayfire_wrapper.lib.interface_functions.opencl as cl | ||
|
||
|
||
def test_get_context_type(): | ||
def test_get_context_type() -> None: | ||
assert isinstance(cl.get_context(), int) | ||
|
||
|
||
def test_get_queue_type(): | ||
def test_get_queue_type() -> None: | ||
assert isinstance(cl.get_queue(), int) | ||
|
||
|
||
def test_get_device_id(): | ||
def test_get_device_id() -> None: | ||
assert isinstance(cl.get_device_id(), int) | ||
|
||
|
||
def test_set_device_id(): | ||
def test_set_device_id() -> None: | ||
cl.set_device_id(0) | ||
assert cl.get_device_id() == 0 | ||
|
||
|
||
def test_get_device_type(): | ||
def test_get_device_type() -> None: | ||
assert cl.get_device_type() == cl.DeviceType.GPU # change according to device | ||
|
||
|
||
def test_get_platform(): | ||
def test_get_platform() -> None: | ||
assert cl.get_platform() == cl.PlatformType.INTEL # change according to platform |