Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am abak on github.
  • I am abak (https://keybase.io/abak) on keybase.
  • I have a public key ASA8tkvqTqZfTjTXCPzbZ_Rqax6J5hdPjpOok3QBPR_Vrgo

To claim this, I am signing this object:

┌[adrien@desktop_arch] [master]
└[~/Work/Numscale/Analyzer/build/ninja]> ninja test
zsh: correct 'test' to 'gtest' [nyae]? n
[1/1] Running tests...
FAILED: cd /home/adrien/Work/Numscale/Analyzer/build/ninja && /usr/bin/ctest --force-new-ctest-process
Test project /home/adrien/Work/Numscale/Analyzer/build/ninja
Start 1: CallgraphTest
1/16 Test #1: CallgraphTest .................... Passed 0.15 sec
Start 2: VertexTest
2/16 Test #2: VertexTest ....................... Passed 0.02 sec
bool init(init_parameters)
{
static my_type my_static(init_parameters);
}
bool some_function(/*params*/)
{
/*use my_static*/
}
01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 660] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device 354e
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (64-bit, prefetchable) [size=128M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
void Cloning::dst(const std::vector<double>& mod_diff, std::vector<double>& sineTransform,int h,int w)
{
unsigned long int idx;
Mat temp = Mat(2*h+2,1,CV_32F);
Mat res = Mat(h,1,CV_32F);
Mat planes[] = {Mat_<float>(temp), Mat::zeros(temp.size(), CV_32F)};
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
Yellow="\[\033[0;33m\]" # Yellow
Blue="\[\033[0;34m\]" # Blue
Purple="\[\033[0;35m\]" # Purple
Cyan="\[\033[0;36m\]" # Cyan
White="\[\033[0;37m\]" # White
LOpenMPJNI;::localCompute : OpenMPJNI.java 1
0 : 27
48 : 28
# {method} 'localCompute' '(Ljava/lang/Float;Ljava/lang/Float;)Ljava/lang/Float;' in 'OpenMPJNI'
# parm0: rsi:rsi = 'java/lang/Float'
# parm1: rdx:rdx = 'java/lang/Float'
# [sp+0x30] (sp of caller)
0x00007f8b2441bee0: mov %eax,-0x14000(%rsp)
0x00007f8b2441bee7: push %rbp
0x00007f8b2441bee8: sub $0x20,%rsp ;*synchronization entry
; - OpenMPJNI::localCompute@-1 (line 27)
0x00007f8b2441beec: vmovss 0xc(%rsi),%xmm0 ;*getfield value
; - java.lang.Float::floatValue@1 (line 609)
/* Read the RAPL registers on a sandybridge-ep machine */
/* Code based on Intel RAPL driver by Zhang Rui <rui.zhang@intel.com> */
/* */
/* The /dev/cpu/??/msr driver must be enabled and permissions set */
/* to allow read access for this to work. */
/* */
/* Code to properly get this info from Linux through a real device */
/* driver and the perf tool should be available as of Linux 3.14 */
/* Compile with: gcc -O2 -Wall -o rapl-read rapl-read.c -lm */
/* */
perf stat -a -e power/energy-cores/ sleep 1
Performance counter stats for 'system wide':
0.37 Joules power/energy-cores/
1.000603618 seconds time elapsed