This file contains hidden or 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
| static inline void transpose_4x4(const __m256d& va, | |
| const __m256d& vb, | |
| const __m256d& vc, | |
| const __m256d& vd, | |
| __m256d& vx, | |
| __m256d& vy, | |
| __m256d& vz) { | |
| const auto tmp0 = _mm256_unpacklo_pd(va, vb); | |
| const auto tmp1 = _mm256_unpackhi_pd(va, vb); | |
| const auto tmp2 = _mm256_unpacklo_pd(vc, vd); |
This file contains hidden or 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
| #![feature(iterator_step_by, cfg_target_feature, target_feature)] | |
| extern crate rand; | |
| use rand::distributions::{IndependentSample, Range}; | |
| extern crate stdsimd; | |
| use stdsimd::vendor::*; | |
| use std::time::Instant; |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() { | |
| int a = -123; | |
| int b = 0, c = 0; | |
| __asm__ volatile("movl %2, %%eax\n\t" | |
| "cdq \n\t" | |
| "movl %%edx, %0\n\t" | |
| "movl %%eax, %1\n\t" | |
| :"=r"(b), "=r"(c) |
This file contains hidden or 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
| global start | |
| section .data | |
| message: db 'Hello World', 0xa, 0 | |
| numtable: dq '0123456789abcdef' | |
| buffer: db 'abcdefghi' | |
| length: equ $ - buffer | |
| section .text | |
| start: |
This file contains hidden or 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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
This file contains hidden or 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
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
This file contains hidden or 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
| library(plotly) | |
| library(reshape2) | |
| fname <- "avx2_vs_gpu.dat" | |
| time.breakdown <- read.table(fname, header = TRUE) | |
| time.breakdown <- cbind(nodes = rownames(time.breakdown), time.breakdown) | |
| colnames(time.breakdown) <- c("device", "other", "comm", "pair", "force") | |
| df <- melt(time.breakdown) |
This file contains hidden or 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
| library(ggplot2) | |
| library(reshape2) | |
| out.file <- "test.png" # output file name | |
| dat <- read.table("test.dat") # input data | |
| colnames(dat) <- c("Apple", "Orange", "Grape", "Pear") # column names | |
| df <- melt(dat) | |
| print(df) |
This file contains hidden or 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
| 000000000040092c <add_v8df(double __vector const&, double __vector const&)>: | |
| 40092c: 55 push rbp | |
| 40092d: 48 89 e5 mov rbp,rsp | |
| 400930: 48 83 ec 60 sub rsp,0x60 | |
| 400934: 48 89 7d f8 mov QWORD PTR [rbp-0x8],rdi | |
| 400938: 48 89 75 a8 mov QWORD PTR [rbp-0x58],rsi | |
| 40093c: 48 89 55 b0 mov QWORD PTR [rbp-0x50],rdx | |
| 400940: c7 45 a0 08 00 00 00 mov DWORD PTR [rbp-0x60],0x8 | |
| 400947: c7 45 a4 00 00 00 00 mov DWORD PTR [rbp-0x5c],0x0 | |
| 40094e: 8b 45 a4 mov eax,DWORD PTR [rbp-0x5c] |
This file contains hidden or 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
| #!/bin/bash | |
| convert -font Helvetica -pointsize 60 -gravity south -annotate 0x0-570+525 "(a)" input.jpeg tmp.jpeg | |
| convert -font Helvetica -pointsize 60 -gravity south -annotate 0x0+70+525 "(b)" tmp.jpeg out.jpeg | |
| rm -f tmp.jpeg |