2019-11-01から1ヶ月間の記事一覧

Intel DL boostを使おうとした続き

先日の記事ですが、問題解決できました。 #include <immintrin.h> #include <stdio.h> int main() { int8_t __attribute__((aligned(64))) op1_int8[64]; int8_t __attribute__((aligned(64))) op2_int8[64]; int __attribute__((aligned(64))) op3_int[16]; int __attribute__((al</stdio.h></immintrin.h>…

Intel DL boostを使おうとしたけど

EC2 c5.12xlarge インスタンスでは使えるはずと思って試しました。 Intelのサイトを参考に sudo apt install gcc-8 clang-8 #include <immintrin.h> #include <stdio.h> int main() { int8_t __attribute__((aligned(64))) op1_int8[64]; int8_t __attribute__((aligned(64))) op2_</stdio.h></immintrin.h>…

「線形代数の基礎」をJavaで実装してみる2

「線形代数の基礎」はこちらのページです。 https://tutorials.chainer.org/ja/05_Basics_of_Linear_Algebra.html スカラ値の乗算 ベクトル public Vector multiply(float scalar) { float[] scalars = new float[this.scalars.length]; for (int i = 0;i < …

「線形代数の基礎」をJavaで実装してみる

「線形代数の基礎」はこちらのページです。 https://tutorials.chainer.org/ja/05_Basics_of_Linear_Algebra.html テンソル public class Tensor { protected final int order; public Tensor(int order) { this.order = order; } } public class LinearAlge…