Create working directory:
mkdir -p ~/forge/openmp4
cd ~/forge/openmp4
Clone LLVM & Compiler Runtime & Clang sources:
| #!/usr/bin/perl -w | |
| # | |
| # Batch-decode a list of *.MKV videos into *.WEBM (VP9) with deinterlace filter, | |
| # using multiple parallel instances of FFmpeg. | |
| # | |
| use threads; | |
| # XXX The number of parallel threads to use. | |
| my($nthreads) = 8; | 
| // gcc pthread_hook.c -shared -o libpthread_hook.so | |
| // LD_PRELOAD=./libpthread_hook.so ./test_app | |
| #define _GNU_SOURCE | |
| #include <sched.h> // cpu_set_t, CPU_SET | |
| #include <dlfcn.h> | |
| #include <errno.h> // EINVAL | |
| #include <pthread.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | 
| Welcome to minicom 2.7.1 | |
| OPTIONS: I18n | |
| Compiled on Aug 13 2017, 15:25:34. | |
| Port /dev/ttyUSB0, 16:52:51 | |
| Press CTRL-A Z for help on special keys | |
| DDR Version 1.15 20181010 | |
| In | 
| Welcome to Ubuntu 19.10! | |
| [ 7.111555] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument | |
| [ 7.149252] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup. | |
| [ 7.150764] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.) | |
| [ 7.165346] systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket ��→ /r. | |
| [ 7.194813] random: systemd: uninitialized urandom read (16 bytes read) | |
| [ 7.195455] systemd[1]: Reached target Remote File Systems. | |
| [ OK ] Reached target Remote File Systems. | |
| [ 7.210891] random: systemd: uninitialized urandom read (16 bytes read) | 
| #ifndef TIMING_H | |
| #define TIMING_H | |
| #if defined(_WIN32) | |
| #define CLOCK_REALTIME_WIN32 0 | |
| #include <windows.h> | |
| struct timespec_win32 | |
| { | 
| From b4a79a41f995b27038011f92f0da3c6852a8596c Mon Sep 17 00:00:00 2001 | |
| From: Dmitry Mikushin <[email protected]> | |
| Date: Wed, 13 Sep 2017 03:28:26 +0300 | |
| Subject: [PATCH] Make Alpine 2.21 to bounce all selected messages | |
| --- | |
| alpine/mailcmd.c | 5 ----- | |
| alpine/reply.c | 12 ++++++------ | |
| 2 files changed, 6 insertions(+), 11 deletions(-) | 
| JNIEXPORT jobject JNICALL Java_..._getValue( | |
| JNIEnv *env, jobject ...) | |
| { | |
| ... | |
| jobject resultObj = result.toJava().getObject(); | |
| return resultObj; // Not NULL! | |
| } | |
| // Log shows: | 
| // AVX-512 swizzle in native assembly for k1om (Intel Xeon Phi Knights Corner) | |
| // | |
| // (c) 2016 Dmitry Mikushin [email protected] | |
| // | |
| // $ icc -no-gcc -mmic -O3 -std=c99 test_swizzle.c -o test_swizzle | |
| // $ micnativeloadex ./test_swizzle | |
| // 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 8.000000 | |
| // 8.000000 8.000000 8.000000 8.000000 8.000000 8.000000 8.000000 8.000000 | |
| #include <immintrin.h> | 
| // AVX-512 horizontal multiply for k1om (Intel Xeon Phi Knights Corner) | |
| // | |
| // (c) 2016 Dmitry Mikushin [email protected] | |
| // | |
| // $ icc -mmic -std=c99 -O3 reduce_mul.c -o reduce_mul | |
| // $ micnativeloadex ./reduce_mul | |
| // -0.004276 vs -0.004276 | |
| #include <immintrin.h> | |
| #include <stdio.h> |