Skip to content

Can't run simple program on GPU #1087

Open
@ZzEeKkAa

Description

@ZzEeKkAa

I'm trying to run simple dpjit code:

import dpnp as dnp
import numpy as np
import numba as nb
from numba_dpex import dpjit

@dpjit
def _sum_nomask(res):
    tot = nb.float32(1.0)
    res[1] = tot

if __name__ == "__main__":
    arr = dnp.arange(10, dtype=np.float32)
    _sum_nomask(res)
    print("dpex:", res)

The example works on cpu, but does not work on GPU:

ONEAPI_DEVICE_SELECTOR=opencl:gpu python example.py
[1]    2251 segmentation fault  ONEAPI_DEVICE_SELECTOR=opencl:gpu python numba_dpex_jax.py

Running on integrated intel gpu 12th gen

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions