Add BNNM intrinsic.
Change-Id: I05fc9835786455e28d69f2b4ffe70c3292a01404
This commit is contained in:
@@ -581,6 +581,32 @@ nScriptIntrinsicBLAS_Z(JNIEnv *_env, jobject _this, jlong con, jlong id, jint fu
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
nScriptIntrinsicBLAS_BNNM(JNIEnv *_env, jobject _this, jlong con, jlong id, jint M, jint N, jint K,
|
||||
jlong A, jint a_offset, jlong B, jint b_offset, jlong C, jint c_offset,
|
||||
jint c_mult_int) {
|
||||
RsBlasCall call;
|
||||
memset(&call, 0, sizeof(call));
|
||||
call.func = RsBlas_bnnm;
|
||||
call.M = M;
|
||||
call.N = N;
|
||||
call.K = K;
|
||||
call.a_offset = a_offset;
|
||||
call.b_offset = b_offset;
|
||||
call.c_offset = c_offset;
|
||||
call.c_mult_int = c_mult_int;
|
||||
|
||||
RsAllocation in_allocs[3];
|
||||
in_allocs[0] = (RsAllocation)A;
|
||||
in_allocs[1] = (RsAllocation)B;
|
||||
in_allocs[2] = (RsAllocation)C;
|
||||
|
||||
rsScriptForEachMulti((RsContext)con, (RsScript)id, 0,
|
||||
in_allocs, sizeof(in_allocs), nullptr,
|
||||
&call, sizeof(call), nullptr, 0);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
nAssignName(JNIEnv *_env, jobject _this, jlong con, jlong obj, jbyteArray str)
|
||||
{
|
||||
@@ -2425,6 +2451,8 @@ static JNINativeMethod methods[] = {
|
||||
{"rsnScriptIntrinsicBLAS_Complex", "(JJIIIIIIIIIFFJJFFJIIII)V", (void*)nScriptIntrinsicBLAS_Complex },
|
||||
{"rsnScriptIntrinsicBLAS_Z", "(JJIIIIIIIIIDDJJDDJIIII)V", (void*)nScriptIntrinsicBLAS_Z },
|
||||
|
||||
{"rsnScriptIntrinsicBLAS_BNNM", "(JJIIIJIJIJII)V", (void*)nScriptIntrinsicBLAS_BNNM },
|
||||
|
||||
{"rsnProgramStoreCreate", "(JZZZZZZIII)J", (void*)nProgramStoreCreate },
|
||||
|
||||
{"rsnProgramBindConstants", "(JJIJ)V", (void*)nProgramBindConstants },
|
||||
|
||||
Reference in New Issue
Block a user