This file contains 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
diff --git a/common_linux.h b/common_linux.h | |
index b0381d9..8d9019a 100644 | |
--- a/common_linux.h | |
+++ b/common_linux.h | |
@@ -76,8 +76,8 @@ static inline int my_mbind(void *addr, unsigned long len, int mode, | |
#endif | |
#else | |
//Fixed randomly SEGFAULT when nodemask==NULL with above Linux 2.6.34 | |
-// unsigned long null_nodemask=0; | |
- return syscall(SYS_mbind, addr, len, mode, nodemask, maxnode, flags); |
This file contains 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/sh | |
HAS_INPUT_FILE=0 | |
ARGS=$@ | |
while [ $# -ne 0 ]; do | |
ARG=$1 | |
# Skip options | |
if [ $ARG == "-arch" ] || [ $ARG == "-o" ]; then | |
# Skip next token | |
shift | |
shift |
This file contains 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
.text | |
.globl test | |
test: | |
vaddpd 2*8(%rbx,%r10,1),%xmm13,%xmm13 | |
ret |
This file contains 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 "cblas.h" | |
#include "lapacke.h" | |
int main(int argc, char* argv[]) | |
{ | |
int* ipiv; | |
int info; | |
int i, j; | |
int n; |
This file contains 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 "sys/time.h" | |
#include "time.h" | |
extern void dgemm_(char*, char*, long*, long*,long*, double*, double*, long*, double*, long*, double*, double*, long*); | |
long main(long argc, char* argv[]) | |
{ | |
long i; |
This file contains 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 "sys/time.h" | |
#include "time.h" | |
extern void dgemm_(char*, char*, int*, int*,int*, double*, double*, int*, double*, int*, double*, double*, int*); | |
int main(int argc, char* argv[]) | |
{ | |
int i; |
This file contains 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 <sys/time.h> | |
#include <time.h> | |
#include "cblas.h" | |
int main(int argc, char* argv[]) | |
{ | |
int i; |
This file contains 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
/*************************************************************************** | |
Copyright (c) 2013, The OpenBLAS Project | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
This file contains 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 <cblas.h> | |
#include <stdio.h> | |
void main() | |
{ | |
int i=0; | |
double A[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0}; | |
double B[6] = {1.0,2.0,1.0,-3.0,4.0,-1.0}; | |
double C[9] = {.5,.5,.5,.5,.5,.5,.5,.5,.5}; | |
cblas_dgemm(CblasColMajor, CblasNoTrans, CblasTrans,3,3,2,1,A, 3, B, 3,2,C,3); |
This file contains 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 <time.h> | |
#include <string.h> | |
extern void dgeqrt3_(long * m, long *n, double * a, long *lda, double *t, long *ldt, long*info); | |
int main(int argc, char**argv) | |
{ | |
int in, i; | |
long n,info=1; |
OlderNewer