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
/* | |
* i7-4700MQ Win8.1 : 9533.579865clk | |
* i7-4700MQ Linux 3.11.4-201.fc19.x86_6 : 1815.603760 | |
*/ | |
#include <signal.h> | |
#include <setjmp.h> | |
#include <x86intrin.h> | |
#include <stdio.h> |
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
/* | |
* i7-4700MQ Win8.1 : 9533.579865clk | |
*/ | |
#include <windows.h> | |
#include <setjmp.h> | |
#define NUM (4096*8) | |
volatile int counter = 0; | |
jmp_buf jbuf; |
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
__kernel void | |
hello(void) | |
{ | |
} |
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
#define __CL_ENABLE_EXCEPTIONS | |
#include <CL/cl.hpp> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
#include <sys/fcntl.h> | |
#include <iostream> | |
#include <sys/time.h> | |
#include <stdio.h> |
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 <windows.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
#ifdef _WIN32 | |
#include <windows.h> | |
double | |
sec() | |
{ | |
LARGE_INTEGER freq, v; |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
FILE *log_file; | |
int write_total; | |
char buffer[1024]; | |
#ifdef _WIN32 | |
#include <windows.h> |
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> | |
#include <string.h> | |
#include <stdlib.h> | |
#ifdef _WIN32 | |
#include <windows.h> | |
double | |
sec() | |
{ | |
LARGE_INTEGER freq, v; |
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 <pmmintrin.h> | |
double ddotp2(double *u, | |
double *v, | |
int n) | |
{ | |
int i; | |
__m128d x = _mm_setzero_pd(); | |
for (i=0; i<n-1; i+=2) { | |
x = _mm_add_pd(x, _mm_mul_pd(_mm_loadu_pd(&u[i]), |
NewerOlder