Skip to content

Instantly share code, notes, and snippets.

View quickwritereader's full-sized avatar
💻

Abdelrauf quickwritereader

💻
View GitHub Profile
diff --git a/kernel/power/sgemv_t.c b/kernel/power/sgemv_t.c
index ed0a242..90a895a 100644
--- a/kernel/power/sgemv_t.c
+++ b/kernel/power/sgemv_t.c
@@ -34,11 +34,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define NBMAX 2048
#include <altivec.h>
-
+
Note: Google Test filter = *:-*_GPU*
[==========] Running 293 tests from 13 test suites.
[----------] Global test environment set-up.
[----------] 16 tests from TestGEMM_expected_failures_s8s8s32/gemm_test
[ RUN ] TestGEMM_expected_failures_s8s8s32/gemm_test.TestGEMM/0
[ OK ] TestGEMM_expected_failures_s8s8s32/gemm_test.TestGEMM/0 (0 ms)
[ RUN ] TestGEMM_expected_failures_s8s8s32/gemm_test.TestGEMM/1
[ OK ] TestGEMM_expected_failures_s8s8s32/gemm_test.TestGEMM/1 (0 ms)
[ RUN ] TestGEMM_expected_failures_s8s8s32/gemm_test.TestGEMM/2
[ OK ] TestGEMM_expected_failures_s8s8s32/gemm_test.TestGEMM/2 (0 ms)
[INFO] ------------FORWARD------------------
[INFO] dataFormat : 2 directionMode: 0 gateAct: 2 cellAct: 0 outAct: 0 hasBiases: 1 hasSeqLen: 0 hasInitH: 0 hasInitC: 0 hasPH: 1 retFullSeq: 1 retLastH: 1 retLastC: 1 gateActHasAlpha: 0 cellActHasAlpha: 0 outActHasAlpha: 0 gateActHasBeta: 0 cellActHasBeta: 0 outActHasBeta: 0 cellClip: 0 gateAlpha: 0 gateBeta: 0 cellAlpha: 0 cellBeta: 0 outAlpha: 0 outBeta: 0
[INFO] ---------ARRAYs----------------
[INFO] Wx:
[INFO] Wx:
[INFO] [[0.694387, -0.061752, -0.520210, -1.509063, 0.315767, -0.421153, -0.736399, 0.144797, 0.144689, -0.534206, -1.037272, -0.800619, -1.612955, -1.100009, -0.656014, -1.447174, 1.125458, -0.856207, -2.012192, -0.879010, -0.657005, 0.091905, -1.683919, -0.280193, 1.408258, -0.940266, -1.199828, -0.017233]
[INFO] [0.036970, 0.439167, -0.201807, 1.010883, -0.897453, -0.026346, -1.113630, 0.090304, -0.748752, 1.510546, -0.324073, 0.874043, -0.429956, 0.503319, 1.926190, 0.914259, 3.171891, -0.072082, 0.780167, 2.159355, 0.528326, -0.656880, 1.15
diff --git a/kompile-python/setup.py b/kompile-python/setup.py
index bffda0e..5f8633b 100644
--- a/kompile-python/setup.py
+++ b/kompile-python/setup.py
@@ -44,6 +44,7 @@ else:
extension = Extension('kompile.interface.native.interface',
extra_compile_args=[],
+ extra_link_args=["-Wl,-rpath='$ORIGIN'"],
sources=['kompile/interface/native/interface.pyx'],
package com.example;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Hello world!
*
*/
package com.nec;
import org.bytedeco.javacpp.Pointer;
import org.nd4j.autodiff.samediff.internal.memory.AbstractMemoryMgr;
import org.nd4j.common.base.Preconditions;
import org.nd4j.common.config.ND4JSystemProperties;
import org.nd4j.common.primitives.Counter;
import org.nd4j.linalg.api.buffer.DataType;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.shape.LongShapeDescriptor;
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NOTICE file distributed with this work for additional
* * information regarding copyright ownership.
This file has been truncated, but you can view the full file.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.example:ve-training:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nd4j:nd4j-native:jar -> duplicate declaration of version 1.0.0-SNAPSHOT @ line 218, column 17
[WARNING] 'profiles.profile[cpu].dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nd4j:nd4j-native:jar -> duplicate declaration of version 1.0.0-SNAPSHOT @ line 178, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
package com.nec;
import java.util.Collections;
import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.Map;
import java.util.Set;
import javax.annotation.Nonnull;
#include <iostream>
#include <legacy/NativeOps.h>
#include <array/NDArray.h>
#include <helpers/ConstantTadHelper.h>
#include <helpers/ShapeUtils.h>
#include <helpers/TAD.h>
#include <loops/reduce3.h>
#include <loops/type_conversions.h>
#include <ops/declarable/CustomOperations.h>