dpnp icon indicating copy to clipboard operation
dpnp copied to clipboard

example2.py fails: AttributeError: 'dpctl.tensor._usmarray.usm_ndarray' object has no attribute 'sin'

Open jeffhammond opened this issue 3 years ago • 0 comments

$ python example2.py 
Running on: Intel(R) Iris(R) Xe Graphics [0x9a49]
DPCtrl SYCL queue used
SYCL kernels link time: 5.8e-08 (sec.)
Math backend version: Intel(R) oneAPI Math Kernel Library Version 2022.0-Product Build 20211112 for Intel(R) 64 architecture applications

...Test data type is numpy, each test repetitions 5
type:numpy:N:  2048:Time:5.245e-06:result:-9.589e-01
type:numpy:N:  4096:Time:8.821e-06:result:-9.589e-01
type:numpy:N:  8192:Time:1.931e-05:result:-9.589e-01
type:numpy:N: 16384:Time:3.552e-05:result:-9.589e-01
type:numpy:N: 32768:Time:7.582e-05:result:-9.589e-01
type:numpy:N: 65536:Time:1.481e-04:result:-9.589e-01
...Test data type is dpnp, each test repetitions 5
AttributeError: 'dpctl.tensor._usmarray.usm_ndarray' object has no attribute 'sin'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jhammond/example2.py", line 83, in <module>
    result_time, result = run_third_party_function(input_data, test_repetition)
  File "/home/jhammond/example2.py", line 67, in run_third_party_function
    result = common_function_one_input(input)
TypeError: loop of ufunc does not support argument 0 of type dpctl.tensor._usmarray.usm_ndarray which has no callable sin method

jeffhammond avatar Jan 04 '22 09:01 jeffhammond