dpnp
dpnp copied to clipboard
benchmarks error: DPNP: Module NumPy found. Please load DPNP module before NumPy.
If DPNP needs to be imported before Numpy, you should do that in your benchmarks.
jhammond@nuclear:~/dpnp/benchmarks/benchmarks$ python bench_elementwise.py
/opt/intel/oneapi/intelpython/latest/lib/python3.9/site-packages/dpnp/__init__.py:41: UserWarning:
DPNP: Module NumPy found. Please load DPNP module before NumPy.
warnings.warn("\nDPNP: Module NumPy found. Please load DPNP module before NumPy.\n")
Running on: Intel(R) Iris(R) Xe Graphics [0x9a49]
DPCtrl SYCL queue used
SYCL kernels link time: 2.7e-08 (sec.)
Math backend version: Intel(R) oneAPI Math Kernel Library Version 2022.0-Product Build 20211112 for Intel(R) 64 architecture applications
Traceback (most recent call last):
File "/home/jhammond/dpnp/benchmarks/benchmarks/bench_elementwise.py", line 3, in <module>
from .common import Benchmark
ImportError: attempted relative import with no known parent package
jhammond@nuclear:~/dpnp/benchmarks/benchmarks$ head bench_elementwise.py
import numpy
import dpnp
from .common import Benchmark
# asv run --python=python --bench Elementwise
# --quick option will run every case once
# but looks like first execution has additional overheads
# (need to be investigated)
class Elementwise(Benchmark):