Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
131 views

In jax, you can donate a function argument to save the execute memory and time, if this argument is not used any more. If you know that one of the inputs is not needed after the computation, and if ...
zhixin's user avatar
  • 194
0 votes
1 answer
163 views

For GPU optimized simulations I have a function where the head looks like this: import jax from functools import partial @partial(partial, jax.jit, static_argnums=(2,4)) def init_particles_grid(...
alo bre's user avatar
  • 31
Advice
1 vote
1 replies
61 views

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 ...
idka's user avatar
  • 131
2 votes
1 answer
127 views

I have a recursively defined function my_func that is jitted using jax.jit from the jax library. It is defined below: # Imports import jax import jax.numpy as jnp from functools import partial import ...
Ben's user avatar
  • 613
3 votes
1 answer
57 views

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 ...
Gilgamesz's user avatar
  • 5,223
3 votes
2 answers
606 views

I am trying to port some code from linux to windows. I need to assemble a jump to an absolute address, using nasm, such that the same bytes will jump to the same address, no matter where the code is ...
pm100's user avatar
  • 50.7k
4 votes
2 answers
240 views

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 ...
user31260114's user avatar
0 votes
0 answers
147 views

The tiered steps provided by Oracle are: It seems to me that... I'd be a reasonable assumption to think that optimizations should occur with methods in isolation (detached from its call-site context),...
Delark's user avatar
  • 1,395
1 vote
0 answers
81 views

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), ...
yousef elbrolosy's user avatar
-1 votes
1 answer
257 views

I'm intresed how and in what cases V8 perform inlining. I know that V8 can inline functions to eliminate call cost, but i dont konw the rules for it to happen. I got how it works in obvious cases, ...
vanilla's user avatar
  • 141
3 votes
0 answers
88 views

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,...
PkDrew's user avatar
  • 2,311
0 votes
1 answer
57 views

The OpenCL API has one object which is sort of a "kitchen sink" for a lot of stuff: The program (with handle type cl_program). It can hold: A textual program source ( ...
einpoklum's user avatar
  • 139k
1 vote
1 answer
96 views

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 ...
Squishium's user avatar
1 vote
1 answer
136 views

as far as my understanding go, in v8 if property access occurs on object with persistent shape jit optimize it to prety much struct acces that is just offsetting a pointer but is the same rules ...
vanilla's user avatar
  • 141
1 vote
0 answers
43 views

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 ...
MindOfTony's user avatar
1 vote
1 answer
106 views

I'm currently using Flax for neural network implementations. My model takes two inputs: x and θ. It first processes x through an LSTM, then concatenates the LSTM's output with θ — or more precisely, ...
Dan Leonte's user avatar
0 votes
0 answers
100 views

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 ...
Rhombododeka's user avatar
0 votes
1 answer
49 views

The clCompileProgram() function of OpenCL takes, among other parameters, a cl_program handle named program, and a list of device handles: cl_device* device_list. The documentation for this function ...
einpoklum's user avatar
  • 139k
0 votes
1 answer
43 views

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; ...
einpoklum's user avatar
  • 139k
-2 votes
1 answer
159 views

The compiler compiles the source code into bytecode that is then converted into machine code by the JVM or the JIT compiler. If the JIT compiler converts the bytecode to machine code then there is no ...
Sonny Mad's user avatar
1 vote
0 answers
89 views

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 ...
einpoklum's user avatar
  • 139k
2 votes
1 answer
559 views

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 ...
KNIGHT's user avatar
  • 21
1 vote
2 answers
102 views

I am trying to get a better conceptual understanding of how the Julia JIT compilation process (perhaps better phrased as "compilation sequence") works. Specifically, I am interested to know ...
user2138149's user avatar
  • 19.1k
20 votes
1 answer
2k views

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 ...
user avatar
16 votes
3 answers
1k views

The goal of this research is to explore the performance differences between JIT (just-in-time compilation) and AOT (ahead-of-time compilation) strategies and to understand their respective advantages ...
Joas Coder's user avatar
1 vote
1 answer
443 views

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 ...
Dan Leonte's user avatar
1 vote
2 answers
686 views

From a memory allocation point of view structs (in most cases) get allocated on the stack and classes get allocated on the heap. Each having their own tradeoffs. And struct vs class is always included ...
Parsa99's user avatar
  • 557
1 vote
1 answer
112 views

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 ...
Sup's user avatar
  • 331
0 votes
1 answer
133 views

I have noticed that when I pass a 2d array of 0s and 1s into a Numba njit function, reshape it, and then cast it to np.int32 or numba.int32, the resulting array when printed is different. Here is ...
tumm's user avatar
  • 3
4 votes
1 answer
620 views

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 ...
Siddarth Singotam's user avatar
3 votes
1 answer
2k views

I am a bit lost on what exactly going on and what option to choose. Let's go trough an example: import jax from functools import partial from typing import List def dummy(a: int, b: List[str]): ...
Evgenii Egorov's user avatar
1 vote
0 answers
145 views

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 ...
user415893's user avatar
0 votes
1 answer
420 views

I have just been upgrading a project form Angular 15 to Angular 18 and ran into a bunch of JIT errors when running my unit tests as follows Errors during JIT compilation of template for _CdkTable: ...
Swaroop's user avatar
  • 561
1 vote
1 answer
123 views

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 ...
Varun Maheshwari's user avatar
1 vote
2 answers
938 views

Recently I updated Node 14 to Node 18.20.4. I changed templates and related components so when I executed ng serve there were no errors in terminal console. However, when I execute npm run start or ...
StepanZ's user avatar
  • 21
0 votes
0 answers
46 views

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 ...
mark's user avatar
  • 63.9k
0 votes
0 answers
1k views

I want to implement the Legendre approximation of Dahlke&Pacheco 2020 to compute the entropy of a Gaussian Mixture Model. I want to incorporate this into some deep learning I have in Jax, so I ...
LudvigH's user avatar
  • 4,991
0 votes
1 answer
86 views

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 ...
Sathya's user avatar
  • 51
1 vote
1 answer
662 views

I've written myself into a corner with the following situation: I'm running an optimiser which requires smooth gradients to work, and I'm using Jax for automatic differentiation. Since this code is ...
LordCat's user avatar
  • 528
2 votes
2 answers
707 views

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 ...
LordCat's user avatar
  • 528
0 votes
1 answer
297 views

ACER Laptop with RTX3070. Installed CUDA, cuDNN, Tensorflow. Tensorflow detecting GPU. CUDA test script detecting GPU and shows GPU stats. Trying to run this jit script to test GPU computing but ...
Faheem S's user avatar
  • 125
1 vote
0 answers
31 views

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 ...
Lingbo Kong's user avatar
0 votes
0 answers
56 views

The code is shown below。There are Two DefaultDomain in Process,and i need to do JIT in DefaultDomain, NGEN's AppDomin Can JIT,but another cant. var Domains = GetAllAppDomains(); foreach (var domain ...
Montarius's user avatar
0 votes
0 answers
64 views

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 ...
Lessthan314's user avatar
0 votes
0 answers
81 views

I am trying to build my MNIST Classifier from scratch in Numba, but it throws the error of type error for np.dot(), however, when I run these functions without NUMBA Jit, I find out all the types are ...
Sadaf Shafi's user avatar
  • 1,568
0 votes
2 answers
1k views

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 ...
xinu3's user avatar
  • 13
0 votes
0 answers
141 views

I am working on an Angular 17 app that uses Tailwind for styling. This app references an Angular package that I also created, which exports a const that store config for colors: // In package: export ...
jlambert's user avatar
0 votes
1 answer
158 views

I am trying to process a very large csv file. The csv file (companies.csv) contains a list of companies with a column of postal codes and some other columns. I have postalcode.csv file containing ...
Hoy Cheung's user avatar
  • 1,678
1 vote
1 answer
544 views

I am very new to JAX. Please excuse me if this something obvious or I am making some stupid mistake. I am trying to implement a function which does the following. All these functions will be called ...
Endeavour 's user avatar
1 vote
1 answer
368 views

I want to use Uprobe in eBPF to trace the Java program I wrote, but I do not know how to find the symbol table corresponding to the Java program. When I find https://github.com/jvm-profiling-tools/...
IluckySi's user avatar

1
2 3 4 5
41