-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
jlama-native/src/main/java/com/github/tjake/jlama/tensor/operations/cnative/constants$0.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); | ||
} | ||
|
||
|
82 changes: 82 additions & 0 deletions
82
jlama-native/src/main/java/com/github/tjake/jlama/tensor/operations/cnative/constants$1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); | ||
} | ||
|
||
|