File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
[deps ]
2
2
InteractiveUtils = " b77e0a4c-d291-57a0-90e8-8db25a27a240"
3
3
LLVMExtra_jll = " dad2f222-ce93-54a1-a47d-0025e8a3acab"
4
+ NUMA_jll = " 7f51dc2b-bb24-59f8-b771-bb1490e4195d"
4
5
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
5
6
Unicode = " 4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
Original file line number Diff line number Diff line change 302
302
end
303
303
end
304
304
305
+ import NUMA_jll
306
+
307
+ @testset " CustomDefinitionGenerator" begin
308
+ @dispose lljit= LLJIT () begin
309
+ if NUMA_jll. is_available ()
310
+ @test_throws lookup (lljit, " numa_available" )
311
+
312
+ dg = LLVM. DynamicLibDefinitionGenerator (NUMA_jll. libnuma)
313
+ jd = JITDylib (lljit)
314
+ LLVM. add! (jd, dg)
315
+
316
+ addr = lookup (lljit, " numa_available" )
317
+ @test addr != = C_NULL
318
+ end
319
+ end
320
+ end
321
+
305
322
end
You can’t perform that action at this time.
0 commit comments