Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Jun 16, 2024
1 parent ead0f23 commit 80412aa
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// Generated by jextract

package com.github.tjake.jlama.tensor.operations.cnative;

import java.lang.invoke.MethodHandle;
import java.lang.invoke.VarHandle;
import java.nio.ByteOrder;
import java.lang.foreign.*;
import static java.lang.foreign.ValueLayout.*;
final class constants$0 {

// Suppresses default constructor, ensuring non-instantiability.
private constants$0() {}
static final FunctionDescriptor const$0 = FunctionDescriptor.ofVoid(
JAVA_INT,
RuntimeHelper.POINTER,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT
);
static final MethodHandle const$1 = RuntimeHelper.downcallHandle(
"gemm_q8_q4",
constants$0.const$0
);
static final FunctionDescriptor const$2 = FunctionDescriptor.ofVoid(
JAVA_INT,
JAVA_INT,
RuntimeHelper.POINTER,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT
);
static final MethodHandle const$3 = RuntimeHelper.downcallHandle(
"gemm_q8_q4_batch",
constants$0.const$2
);
static final FunctionDescriptor const$4 = FunctionDescriptor.ofVoid(
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT
);
static final MethodHandle const$5 = RuntimeHelper.downcallHandle(
"gemm_f32",
constants$0.const$4
);
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// Generated by jextract

package com.github.tjake.jlama.tensor.operations.cnative;

import java.lang.invoke.MethodHandle;
import java.lang.invoke.VarHandle;
import java.nio.ByteOrder;
import java.lang.foreign.*;
import static java.lang.foreign.ValueLayout.*;
final class constants$1 {

// Suppresses default constructor, ensuring non-instantiability.
private constants$1() {}
static final FunctionDescriptor const$0 = FunctionDescriptor.ofVoid(
JAVA_INT,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT
);
static final MethodHandle const$1 = RuntimeHelper.downcallHandle(
"gemm_f32_batch",
constants$1.const$0
);
static final FunctionDescriptor const$2 = FunctionDescriptor.ofVoid(
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT
);
static final MethodHandle const$3 = RuntimeHelper.downcallHandle(
"gemm_f32_q4",
constants$1.const$2
);
static final FunctionDescriptor const$4 = FunctionDescriptor.ofVoid(
JAVA_INT,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
RuntimeHelper.POINTER,
JAVA_INT,
RuntimeHelper.POINTER,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT,
JAVA_INT
);
static final MethodHandle const$5 = RuntimeHelper.downcallHandle(
"gemm_f32_q4_batch",
constants$1.const$4
);
}


0 comments on commit 80412aa

Please sign in to comment.