From da90613bbd9611beecda49b08740834423b2914e Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 5 Oct 2022 09:46:47 -0500 Subject: [PATCH 1/2] Fix support of compute follows data in dpnp.erf --- dpnp/dpnp_iface_libmath.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpnp/dpnp_iface_libmath.py b/dpnp/dpnp_iface_libmath.py index 934f420bd68..6ef787487af 100644 --- a/dpnp/dpnp_iface_libmath.py +++ b/dpnp/dpnp_iface_libmath.py @@ -2,7 +2,7 @@ # distutils: language = c++ # -*- coding: utf-8 -*- # ***************************************************************************** -# Copyright (c) 2016-2020, Intel Corporation +# Copyright (c) 2016-2022, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -77,7 +77,7 @@ def erf(in_array1): """ - x1_desc = dpnp.get_dpnp_descriptor(in_array1, copy_when_strides=False) + x1_desc = dpnp.get_dpnp_descriptor(in_array1, copy_when_strides=False, copy_when_nondefault_queue=False) if x1_desc: return dpnp_erf(x1_desc).get_pyobj() From 6a52ccaee9e406a2b6c9ecfe1f0ab9ccafa2c103 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 5 Oct 2022 10:09:13 -0500 Subject: [PATCH 2/2] Include tests for dpnp.erf in validation with github action --- .github/workflows/conda-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 83045bcd8f8..c37c7fc594c 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -163,7 +163,7 @@ jobs: channel-path: '${{ github.workspace }}/channel/' pkg-path-in-channel: '${{ github.workspace }}/channel/linux-64/' extracted-pkg-path: '${{ github.workspace }}/pkg/' - tests-path: '${{ github.workspace }}/pkg/info/test/' + tests-path: '${{ github.workspace }}/pkg/info/test/tests/' ver-json-path: '${{ github.workspace }}/version.json' steps: @@ -237,7 +237,7 @@ jobs: # TODO: run the whole scope once the issues on CPU are resolved - name: Run tests - run: python -m pytest -q -ra --disable-warnings -vv tests/test_arraycreation.py tests/test_dparray.py tests/test_mathematical.py + run: python -m pytest -q -ra --disable-warnings -vv test_arraycreation.py test_dparray.py test_mathematical.py test_special.py env: SYCL_ENABLE_HOST_DEVICE: '1' working-directory: ${{ env.tests-path }} @@ -264,7 +264,7 @@ jobs: channel-path: '${{ github.workspace }}\channel\' pkg-path-in-channel: '${{ github.workspace }}\channel\win-64\' extracted-pkg-path: '${{ github.workspace }}\pkg' - tests-path: '${{ github.workspace }}\pkg\info\test\' + tests-path: '${{ github.workspace }}\pkg\info\test\tests\' ver-json-path: '${{ github.workspace }}\version.json' active-env-name: 'test' miniconda-lib-path: 'C:\Miniconda3\envs\test\Library\lib\' @@ -410,7 +410,7 @@ jobs: # TODO: run the whole scope once the issues on CPU are resolved - name: Run tests - run: python -m pytest -q -ra --disable-warnings -vv tests\test_arraycreation.py tests\test_dparray.py tests\test_mathematical.py + run: python -m pytest -q -ra --disable-warnings -vv test_arraycreation.py test_dparray.py test_mathematical.py test_special.py working-directory: ${{ env.tests-path }} upload_linux: