Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA Errors #5

Open
r-barnes opened this issue Jan 22, 2020 · 2 comments
Open

CUDA Errors #5

r-barnes opened this issue Jan 22, 2020 · 2 comments

Comments

@r-barnes
Copy link

After compiling the code with

./configure.sh $CUDA_HOME
make GPU_SM_ARCH=sm_60 MAX_QUERY_LEN=1024 N_CODE=0x4E
cd test_prog
make

I run:

./test_prog -p -y local query_batch.fasta target_batch.fasta

This raises several CUDA errors that I can suppress by commenting out the following lines:

res.cpp:157: if (res->n_cigar_ops != NULL) CHECKCUDAERROR(cudaFreeHost(res->n_cigar_ops));
res.cpp:173: if (device_cpy->cigar != NULL) CHECKCUDAERROR(cudaFree(device_cpy->cigar));
ctors.cpp:165: if (gpu_storage_vec->a[i].host_res->cigar != NULL) CHECKCUDAERROR(cudaFreeHost(gpu_storage_vec->a[i].host_res->cigar));

All of the error messages read the same:

[GASAL CUDA ERROR:] invalid argument(CUDA error no.=1). Line no. 157 in file ../src/res.cpp

It looks like there might be an issue with allocating/deallocating CIGAR storage.

@TimD1
Copy link

TimD1 commented Nov 10, 2021

I'm running into the same errors. Thanks for suggesting the easy fix

@r-barnes
Copy link
Author

@TimD1 : Glad I could help. Hopefully the authors are able to implement some fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants