Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit a44cbb4

Browse files
committed
Get path to glue so by taking path from the initialize file and adding some components and the lib name.
1 parent 5d964e4 commit a44cbb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

numba/oneapi/initialize.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import absolute_import, print_function
22
import llvmlite.binding as ll
3+
import os
34

45

56
def init_jit():
@@ -9,7 +10,8 @@ def init_jit():
910
def initialize_all():
1011
from numba.targets.registry import dispatcher_registry
1112
dispatcher_registry.ondemand['ocl'] = init_jit
12-
ll.load_library_permanently('../oneapidriver/libnumbaoneapiglue_so.so')
13+
dir_path = os.path.dirname(os.path.realpath(__file__)) + "/oneapidriver/libnumbaoneapiglue_so.so"
14+
ll.load_library_permanently(dir_path)
1315
ll.load_library_permanently('libOpenCL.so')
1416

1517
def _initialize_ufunc():

0 commit comments

Comments
 (0)