diff options
author | xiangzhou | 2017-05-25 08:59:13 -0400 |
---|---|---|
committer | GitHub | 2017-05-25 08:59:13 -0400 |
commit | 0885df136fcbe42b1665998f293953cfe8d216c6 (patch) | |
tree | bde505a7669e8eeb169b98bc3389150c87b63cbe /src/d2f.sh | |
parent | a19c532566795a2c9b953a4f2b88fd462ebf84c1 (diff) | |
download | pangemma-0885df136fcbe42b1665998f293953cfe8d216c6.tar.gz |
Add files via upload
Diffstat (limited to 'src/d2f.sh')
-rw-r--r-- | src/d2f.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/d2f.sh b/src/d2f.sh new file mode 100644 index 0000000..8267ee3 --- /dev/null +++ b/src/d2f.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +for prefix in gemma param io lm lmm mvlmm bslmm mathfunc prdt +do +for extension in cpp h +do +cp ${prefix}.${extension} ${prefix}_float.${extension} +sed -i .bak 's/_vector_/_vector_float_/g' ${prefix}_float.${extension} +sed -i .bak 's/_vector /_vector_float /g' ${prefix}_float.${extension} +sed -i .bak 's/_matrix_/_matrix_float_/g' ${prefix}_float.${extension} +sed -i .bak 's/_matrix /_matrix_float /g' ${prefix}_float.${extension} +sed -i .bak 's/ddot/dsdot/g' ${prefix}_float.${extension} +sed -i .bak 's/dtrsv/strsv/g' ${prefix}_float.${extension} +sed -i .bak 's/dtrsy/strsy/g' ${prefix}_float.${extension} +sed -i .bak 's/dgemm/sgemm/g' ${prefix}_float.${extension} +sed -i .bak 's/dgemv/sgemv/g' ${prefix}_float.${extension} +sed -i .bak 's/dsyr/ssyr/g' ${prefix}_float.${extension} +sed -i .bak 's/dsyr2/ssyr2/g' ${prefix}_float.${extension} +sed -i .bak 's/ddot/sdot/g' ${prefix}_float.${extension} +sed -i .bak 's/dger/sger/g' ${prefix}_float.${extension} +sed -i .bak 's/dsyrk/ssyrk/g' ${prefix}_float.${extension} +sed -i .bak 's/daxpy/saxpy/g' ${prefix}_float.${extension} +rm ${prefix}_float.${extension}.bak +done +done |