Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

machakann

💭
I may be slow to respond.
View GitHub Profile
@machakann
machakann / compile_error.log
Created Feb 7, 2015
compile error of OpenBLAS(rev. 1ccd57c)
View compile_error.log
This file has been truncated, but you can view the full file.
ln: failed to create symbolic link 'libopenblas.a': No such file or directory
Makefile:141: recipe for target 'libs' failed
make: [libs] Error 1 (ignored)
make[1]: Entering directory '/path/to/workingdir/OpenBLAS/interface'
gcc -O2 -DMS_ABI -mincoming-stack-boundary=2 -fopenmp -Wall -m32 -DF_INTERFACE_GFORT -DNO_AVX -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=_saxpy -DASMFNAME=_saxpy_ -DNAME=saxpy_ -DCNAME=saxpy -DCHAR_NAME=\"saxpy_\" -DCHAR_CNAME=\"saxpy\" -DNO_AFFINITY -I.. -I. -UDOUBLE -UCOMPLEX -c axpy.c -o saxpy.obj
gcc -O2 -DMS_ABI -mincoming-stack-boundary=2 -fopenmp -Wall -m32 -DF_INTERFACE_GFORT -DNO_AVX -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=_sswap -DASMFNAME=_sswap_ -DNAME=sswap_ -DCNAME=sswap -DCHAR_NAME=\"sswap_\" -DCHAR_CNAME=\"sswap\" -DNO_AFFINITY -I.. -I. -UDOUBLE -UCOMPLEX -c swap.c -o sswap.obj
View update_indent_files.patch
diff -r 3bd553b9e4bf runtime/indent/ada.vim
--- a/runtime/indent/ada.vim Sat Mar 14 15:35:52 2015 +0100
+++ b/runtime/indent/ada.vim Tue Mar 17 21:55:49 2015 +0800
@@ -87,7 +87,7 @@
endwhile
endwhile
" Fallback - just move back one
- return a:prev_indent - &sw
+ return a:prev_indent - shiftwidth()
endfunction MainBlockIndent
View test_matchstrpos.vim
function! Tic()
let s:starttime = reltime()
endfunction
function! Toc()
return reltimestr(reltime(s:starttime))
endfunction
command! -nargs=0 Tic call Tic()
command! -nargs=0 Toc echomsg Toc()
function! Profile_matchfuncs() abort
View fix_findstart_type.patch
diff --git a/src/edit.c b/src/edit.c
index ef4c98d29..8467994dd 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -5441,7 +5441,7 @@ ins_complete(int c, int enable_pum)
pos = curwin->w_cursor;
curwin_save = curwin;
curbuf_save = curbuf;
- col = call_func_retnr(funcname, 2, args, FALSE);
+ col = call_func_retnr(funcname, 2, args, FALSE, FALSE);
@machakann
machakann / gamess_2018R1_mkl.diff
Last active Sep 15, 2018
A patch to use intel-mkl BLAS for GAMESS
View gamess_2018R1_mkl.diff
diff -uprN ./gamess_orig/lked ./gamess/lked
--- ./gamess_orig/lked 2018-02-08 05:15:24.000000000 +0800
+++ ./gamess/lked 2018-09-08 23:31:10.713977386 +0800
@@ -575,7 +577,7 @@ if ($TARGET == linux64) then
set MATHLIBS="$MATHLIBS $mpath/libmkl_sequential.a "
set MATHLIBS="$MATHLIBS $mpath/libmkl_core.a "
set MATHLIBS="$MATHLIBS -Wl,--end-group"
- if ($GMS_OPENMP == true) set MATHLIBS="$MATHLIBS -ldl"
+ set MATHLIBS="$MATHLIBS -ldl"
breaksw
View gamess_2018R1_openblas.diff
diff -uprN ./gamess_orig/config ./gamess/config
--- ./gamess_orig/config 2018-02-15 11:10:06.000000000 +0800
+++ ./gamess/config 2018-09-11 22:56:48.292120310 +0800
@@ -562,7 +562,7 @@ else
echo "Type 'ls /opt/pgi/osx86-64/*/lib/* to look for libblas.a from PGI"
endif
echo " "
-echo -n "Enter your choice of 'mkl' or 'atlas' or 'acml' or 'pgiblas' or 'none': "
+echo -n "Enter your choice of 'mkl' or 'atlas' or 'acml' or 'pgiblas' or 'openblas' or 'none': "
set GMS_MATHLIB=$<
View gamess_2018R1_openblas_with_threading.diff
diff -uprN ./gamess_orig/config ./gamess/config
--- ./gamess_orig/config 2018-02-15 11:10:06.000000000 +0800
+++ ./gamess/config 2018-09-11 22:56:48.292120310 +0800
@@ -562,7 +562,7 @@ else
echo "Type 'ls /opt/pgi/osx86-64/*/lib/* to look for libblas.a from PGI"
endif
echo " "
-echo -n "Enter your choice of 'mkl' or 'atlas' or 'acml' or 'pgiblas' or 'none': "
+echo -n "Enter your choice of 'mkl' or 'atlas' or 'acml' or 'pgiblas' or 'openblas' or 'none': "
set GMS_MATHLIB=$<
@machakann
machakann / alanine.inp
Created Sep 15, 2018
Alanine - Single Point Energy - CCSD(T)/6-311G
View alanine.inp
$CONTRL SCFTYP=RHF RUNTYP=ENERGY CCTYP=CCSD(T) MAXIT=50 MULT=1 NZVAR=33 $END
$SYSTEM TIMLIM=525600 MWORDS=100 MEMDDI=100 $END
$BASIS GBASIS=N311 NGAUSS=6 $END
$SCF DIRSCF=.TRUE. $END
$ZMAT DLC=.TRUE. AUTO=.TRUE. $END
$DATA
Alanine
C1
H 1.0 0.38827 1.48218 -0.22171
C 6.0 0.32693 0.39806 0.04886
@machakann
machakann / caffeine.inp
Created Sep 15, 2018
Caffeine - Single Point Energy - MP2/6-311G(d)
View caffeine.inp
$CONTRL SCFTYP=RHF RUNTYP=ENERGY MPLEVL=2 MAXIT=30 MULT=1
NZVAR=66 $END
$SYSTEM TIMLIM=525600 MWORDS=100 MEMDDI=100 $END
$BASIS GBASIS=N311 NGAUSS=6 NDFUNC=1 $END
$SCF DIRSCF=.TRUE. $END
$ZMAT DLC=.TRUE. AUTO=.TRUE. $END
$DATA
Caffeine
C1
N 7.0 1.31200 -1.04790 0.00250
View coumarin.inp
$CONTRL SCFTYP=RHF RUNTYP=ENERGY DFTTYP=B3LYPV3 MAXIT=50 MULT=1 $END
$SYSTEM TIMLIM=525600 MWORDS=100 $END
$BASIS GBASIS=N311 NGAUSS=6 NDFUNC=1 $END
$SCF DIRSCF=.TRUE. $END
$DATA
Coumarin
C1
C 6.0 2.36439 0.71434 0.00000
C 6.0 2.30658 -0.68323 0.00000
C 6.0 1.08599 -1.33517 0.00000