2,017 questions
Advice
0
votes
0
replies
18
views
Adding stack information to jit'd code for sanitization
Disclaimer: I'm expecting that the answer to this question will be that it can't be done, but I'm asking as a just in case.
I am working on a JIT'd language with the compiler and runtime implemented ...
3
votes
1
answer
51
views
Unexpected recompilation of method - JVM
Let look at the log from XX:+PrintCompilation:
Time Tier Method
11:20:24 3 m
11:24:14 3 m made not entrant
11:24:15 2 ...
4
votes
2
answers
207
views
Why is the the generic implementation of Vector.Log so much slower than the non-generic implementations for me?
I've run some benchmarks on Math.Log, System.Numerics.Vector.Log, System.Runtime.Intrinsics.Vector128.Log, Vector256.Log and Vector512.Log and the results were pretty surprising to me. I was expecting ...
1
vote
0
answers
74
views
LAPACK Inconsistent across multiple different operating systems and devices
Description
I have a deterministic program that uses jax, and is heavy on linear algebra operations.
I ran this code on CPU, using three different CPUs. Two MacOs Systems (one on Sequoia (M1 Pro), ...
3
votes
0
answers
85
views
How does Python debugger honor the editing of script during execution?
I understand that Python interpreter will compiles source code during parsing just like what compiler for C does, which makes me curious why Python debugger can honor the editing during execution?
Say,...
1
vote
1
answer
76
views
numba.njit signature for a list of jitclass objects
I am trying to pass a list of jitclass objects to a jitted function, but I've been unable to find a suitable type signature for njit. I don't understand well how Numba thinks, so I would really ...
1
vote
0
answers
39
views
Cross platform exceptions in llvm jit
I'm trying to implement exceptions in a language with llvm jit, Well not exceptions really but a panic system, that unwinds the stack to specific point and destroys local variables, I chose to use ...
0
votes
0
answers
20
views
torch jit.trace cannot handle the dynamic process input it will cause the error
How to solve this are there any other methods for computation graph to generate?I am currently working on mmdet3d frameworks using pointpillar model to generate the graph for this model
0
votes
0
answers
90
views
Numba jitclass instance array element cannot be changed based on later code
I have a numba jitclass with an instance attribute that is a 1d-array of floats, initialized to be zeros (in the MRE as [0.,0.]).
I have a jitted function that creates an instance of said class and ...
0
votes
1
answer
29
views
Why does clLinkProgram take a context handle?
In OpenCL, the clLinkProgram() function takes (among other things)
A cl_context context handle;
An array of cl_program handles of program objects.
Now, a cl_program is always created in a context; ...
1
vote
0
answers
69
views
clBuildProgram vs clCompileProgram - when should I call each of these?
In regular software development parlance, we begin with program sources; we then compile them into binary objects; and finally link the objects them into an executable object. And the entire process ...
2
votes
1
answer
391
views
TracerBoolConversion error while attempting to use @jit on functions
In an effort to optimize an existing function used in an optimization algorithm by applying @jit, I encountered some issues. When running the following function:
import jax
import jax.numpy as jnp
...
0
votes
0
answers
6
views
Why does clCompileProgram take "headers" wrapped in cl_program's?
In OpenCL, when you want to compile (not link) a kernel for some target devices, you call:
cl_int clCompileProgram(
cl_program program,
cl_uint num_devices,
const cl_device_id* device_list,...
20
votes
1
answer
2k
views
Why does this simple and small Java code runs 30x faster in all Graal JVMs but not on any Oracle JVMs?
I'm not compiling anything to native, in other words, I'm not using native-image from GraalVM. I'm just running the same Java class (same Java bytecode) with GraalVM and then running the same Java ...
1
vote
1
answer
402
views
jax and flax not playing nicely with each other
I want to implement a neural network with multiple LSTM gates stacked one after the other.I set the hidden states to 0, as suggested here. When I try to run the code, I get
JaxTransformError: Jax ...
1
vote
1
answer
89
views
Spooky behaviour of JAX
This is a follow-up to my previous question. I am implementing a Parameterized Quantum Circuit as a Quantum Neural Network, where the optimization loop is jitted. Although there's no error, everything ...
4
votes
1
answer
568
views
Cannot run Swift code on my windows system due to JIT session error
I'm getting a JIT session error when I'm running my swift program in vscode. How do I run this without the error?
My terminal
[Running] swift "d:\Metropolia\Swift_new\demo.swift"
JIT session ...
1
vote
0
answers
131
views
multiprocessing and shared memory
I am trying to get the basics of multiprocessing in python. I have a quite complex routine that takes a large array (c.a 1Gb) and a double as inputs and returns a double. The large array is not going ...
1
vote
1
answer
121
views
Code to handle arbitrary number of for loops in Python/Numba
I have a function compiled under the 'njit' framework in Numba. It looks like this:
import numpy as np
from numba import njit, types, prange
from numba.typed import List
@njit(cache=CACHE_FLAG)
def ...
0
votes
0
answers
43
views
How can we instruct local .NET runtime to JIT the same way as in a core dump from production?
I have two dumps from production and both of them JIT the method System.ComponentModel.Composition.Hosting.CompositionLock.LockComposition from the System.ComponentModel.Composition.dll assembly like ...
0
votes
1
answer
85
views
Getting JIT compilation of template error while creating dynamic angular HTML
Getting JIT compilation of template error while creating dynamic angular HTML, refer the below screenshot. Angular HTML code not resolving.
Here is the stackblitz code:
Steps to reproduce:
Click on ...
2
votes
2
answers
651
views
Dictionary indexing with Numpy/Jax
I'm writing an interpolation routine and have a dictionary which stores the function values at the fitting points. Ideally, the dictionary keys would be 2D Numpy arrays of the fitting point ...
1
vote
0
answers
25
views
Want to know the inernal mach of Numba JIT
From https://llvmlite.readthedocs.io/en/latest/user-guide/binding/examples.html, I made up the following code, aiming to understand the procedure of Numba JIT.
from __future__ import print_function
...
0
votes
0
answers
55
views
Allocating complex data (btVector3) on the stack in LLVM IR
I want to use LLVM to JIT compile some code in my game using the LLVM C/C++ API. The JIT compiled functions should be able to effect the physics of the world, which is handled by bullet3.
To do so I ...
0
votes
2
answers
1k
views
Angular 18 -- Error: The injectable 'Http2' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available
I am upgrading an old project of mine from Angular ~7 to ~18. After fixing ALL the TS warnings and errors, the project compiles successfully. However, when I run npm start and hit localhost:4200 I am ...