Skip to content

Instantly share code, notes, and snippets.

View YoshitakaMo's full-sized avatar

Yoshitaka Moriwaki YoshitakaMo

View GitHub Profile
@YoshitakaMo
YoshitakaMo / bandedSWA.cpp.patch
Created August 3, 2024 16:28
bandedSWA.cpp.patch
diff --git a/src/bandedSWA.cpp b/src/bandedSWA.cpp
index dfd81bc..2d33c43 100644
--- a/src/bandedSWA.cpp
+++ b/src/bandedSWA.cpp
@@ -4148,13 +4148,13 @@ void BandedPairWiseSW::smithWaterman128_16(uint16_t seq1SoA[],
/********************************************************************************/
/* SSE2 - 8 bit version */
-#ifndef __SSE4_1__
-static inline __m128i _mm_blendv_epi8 (__m128i x, __m128i y, __m128i mask)
@YoshitakaMo
YoshitakaMo / fastmap.patch
Last active August 3, 2024 15:40
fastmap.patch
diff --git a/src/fastmap.cpp b/src/fastmap.cpp
index 3a7e62e..d0ce8a7 100644
--- a/src/fastmap.cpp
+++ b/src/fastmap.cpp
@@ -49,13 +49,30 @@ extern uint64_t tprof[LIM_R][LIM_C];
// ---------------
void __cpuid(unsigned int i, unsigned int cpuid[4]) {
-#ifdef _WIN32
- __cpuid((int *) cpuid, (int)i);
@YoshitakaMo
YoshitakaMo / alphafold
Last active February 10, 2024 05:27
alphafold shell script
#!/bin/bash
############################################################
# このファイルを作成後、chmod +x alphafoldで実行権限を付加し、
# $ALPHAFOLDDIR/bin/ ディレクトリを作成してそこに配置するのがおすすめ
############################################################
### set your environment module path
# . /usr/local/Modules/init/profile.sh
### require cuda 11.8 or later