Skip to content

Commit 0578939

Browse files
Add --gpu to databases
1 parent 9564601 commit 0578939

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

data/workflow/databases.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ case "${INPUT_TYPE}" in
306306
"FASTA_LIST")
307307
eval "set -- $ARR"
308308
# shellcheck disable=SC2086
309-
"${MMSEQS}" createdb "${@}" "${OUTDB}" ${COMP_PAR} \
309+
"${MMSEQS}" createdb "${@}" "${OUTDB}" ${COMP_PAR} --gpu 1 \
310310
|| fail "createdb died"
311311
for i in "${@}"; do
312312
rm -f -- "$i"
313313
done
314314
;;
315315
"FSA")
316316
# shellcheck disable=SC2086
317-
"${MMSEQS}" createdb "${TMP_PATH}/"*.fsa "${OUTDB}" ${COMP_PAR} \
317+
"${MMSEQS}" createdb "${TMP_PATH}/"*.fsa "${OUTDB}" ${COMP_PAR} --gpu 1 \
318318
|| fail "createdb died"
319319
rm -f -- "${TMP_PATH}/"*.fsa
320320
;;
@@ -385,7 +385,7 @@ case "${INPUT_TYPE}" in
385385
sed 's|_protein\.faa\.gz||g' "${TMP_PATH}/tardb.lookup" > "${TMP_PATH}/tardb.lookup.tmp"
386386
mv -f -- "${TMP_PATH}/tardb.lookup.tmp" "${TMP_PATH}/tardb.lookup"
387387
# shellcheck disable=SC2086
388-
"${MMSEQS}" createdb "${TMP_PATH}/tardb" "${OUTDB}" ${COMP_PAR} \
388+
"${MMSEQS}" createdb "${TMP_PATH}/tardb" "${OUTDB}" ${COMP_PAR} --gpu 1 \
389389
|| fail "createdb died"
390390
if [ -n "${REMOVE_TMP}" ]; then
391391
# shellcheck disable=SC2086

src/util/createdb.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ int sortWithIndex(const char *dataFileSeq,
5252
setvbuf(seqOut, NULL, _IOFBF, 1024*1024*50);
5353
size_t offset = 0;
5454
for (size_t i = 0; i < reader.getSize(); i++) {
55-
if(index[i].length == 28){
56-
std::cout << "Warning: Sequence with length 28 found in " << dataFileSeq << ". This is likely a bug in the database creation.\n";
57-
}
5855
size_t written = fwrite(buf + index[i].offset, 1, index[i].length, seqOut);
5956
if (written != static_cast<size_t>(index[i].length)) {
6057
Debug(Debug::ERROR) << "Can not write to data file " << dataFileSeq << "\n";

0 commit comments

Comments
 (0)