2,014 questions
0
votes
0
answers
50
views
C# - Can the JIT optimize generic type checking? [closed]
I am attempting to make a parse function to parse common types from a string such that;
public static T FromSpan<T>(string Value)
{
if (typeof(T) == typeof(string))
{
return (T)(...
1
vote
1
answer
44
views
js v8 computed property names and inline cache
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 ...
1
vote
0
answers
25
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
21
views
LLVM ORC JIT Issues
I'm having issues getting the LLVM ORC JIT API to work properly with my project. This is my code (running LLVM 18.1.8):
class Jit
{
private:
ExecutionSession _executionSession;
...
0
votes
0
answers
11
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
1
vote
1
answer
70
views
Jax / Flax potential tracing issue
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, ...
0
votes
0
answers
81
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
30
views
What are the OpenCL devices "associated with a program"?
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 ...
0
votes
1
answer
20
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; ...
-2
votes
1
answer
129
views
Reflection API and JVM and JIT [closed]
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 ...
1
vote
0
answers
29
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 ...
0
votes
0
answers
34
views
What is the guaranteed relation of the per-binary and overall return status of clCreateProgramWithBinaries?
The OpenCL API has the following function:
cl_program clCreateProgramWithBinary(
cl_context context,
cl_uint num_devices,
const cl_device_id* device_list,
const size_t* lengths,
...
1
vote
1
answer
78
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
1
answer
41
views
How to wrap a torch.jit model inside a torch Module?
I'm trying to call a TorchScript model inside a torch.nn.Module but got an error related to pickle.
Here's the code to reproduce:
import torch
import torch.nn as nn
# A simple base model to create a ...
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,...