Skip to content

Commit be62ab5

Browse files
committed
Squashed 'lib/libmarv/' changes from 444c7dfe..ca62422d
ca62422d Don't build DPX kernels for pre-hopper git-subtree-dir: lib/libmarv git-subtree-split: ca62422d2332b801fd4c121094bfe859d004ef6d
1 parent c16181c commit be62ab5

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/pssmkernels_gapless.cuh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ namespace hardcodedzero{
200200
__grid_constant__ const SequenceLengthT queryLength,
201201
__grid_constant__ const PSSM_2D_View<ScoreType> strided_PSSM
202202
) {
203+
if constexpr (std::is_same_v<ScoreType, short2>) {
204+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 900
205+
return;
206+
#endif
207+
}
203208
static_assert(numRegs % 4 == 0);
204209
static_assert(blocksize % group_size == 0);
205210
__builtin_assume(blockDim.x == blocksize);
@@ -604,6 +609,11 @@ namespace hardcodedzero{
604609
__grid_constant__ float2* const multiTileTempStorage,
605610
__grid_constant__ const size_t tempStorageElementsPerGroup
606611
) {
612+
if constexpr (std::is_same_v<ScoreType, short2>) {
613+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 900
614+
return;
615+
#endif
616+
}
607617
static_assert(numRegs % 4 == 0);
608618
static_assert(blocksize % group_size == 0);
609619
__builtin_assume(blockDim.x == blocksize);
@@ -1293,6 +1303,11 @@ namespace kernelparamzero{
12931303
__grid_constant__ const PSSM_2D_View<ScoreType> strided_PSSM,
12941304
__grid_constant__ const ScoreType zero
12951305
) {
1306+
if constexpr (std::is_same_v<ScoreType, short2>) {
1307+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 900
1308+
return;
1309+
#endif
1310+
}
12961311
static_assert(numRegs % 4 == 0);
12971312
static_assert(blocksize % group_size == 0);
12981313
__builtin_assume(blockDim.x == blocksize);
@@ -1677,6 +1692,11 @@ namespace kernelparamzero{
16771692
__grid_constant__ const size_t tempStorageElementsPerGroup,
16781693
__grid_constant__ const ScoreType zero
16791694
) {
1695+
if constexpr (std::is_same_v<ScoreType, short2>) {
1696+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 900
1697+
return;
1698+
#endif
1699+
}
16801700
static_assert(numRegs % 4 == 0);
16811701
static_assert(blocksize % group_size == 0);
16821702
__builtin_assume(blockDim.x == blocksize);

src/pssmkernels_smithwaterman.cuh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ void amino_gpu_localAlignmentKernel_affinegap_floatOrInt_pssm_singletile(
7474
__grid_constant__ const ScoreType gapopenscore,
7575
__grid_constant__ const ScoreType gapextendscore
7676
){
77+
if constexpr (std::is_same_v<ScoreType, int>) {
78+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 900
79+
return;
80+
#endif
81+
}
7782
static_assert(std::is_same_v<ScoreType, float> || std::is_same_v<ScoreType, int>);
7883

7984
static_assert(groupsize >= 4);
@@ -811,6 +816,11 @@ void amino_gpu_localAlignmentKernel_affinegap_floatOrInt_pssm_multitile(
811816
__grid_constant__ char* const tempStorage,
812817
__grid_constant__ const size_t tempBytesPerGroup
813818
){
819+
if constexpr (std::is_same_v<ScoreType, int>) {
820+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 900
821+
return;
822+
#endif
823+
}
814824
static_assert(std::is_same_v<ScoreType, float> || std::is_same_v<ScoreType, int>);
815825

816826
static_assert(groupsize >= 4);

0 commit comments

Comments
 (0)