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 initialization error #403

Open
im281 opened this issue Mar 8, 2022 · 0 comments
Open

CUDA initialization error #403

im281 opened this issue Mar 8, 2022 · 0 comments

Comments

@im281
Copy link

im281 commented Mar 8, 2022

running multiple files in the test_gpu.py script results in a cuda initialization error. A single file can be run but it is not using GPU.

`
def main():
mode = 'numba-multithread' #'cuda' #sys.argv[1]
print(f"Testing with mode {mode}")
global alphapept
alphapept.performance.set_compilation_mode(mode)
alphapept.performance.set_worker_count(0)
importlib.reload(alphapept.feature_finding)

#delete_folder(tmp_folder)
#create_folder(tmp_folder)

for file in FILE_DICT:
target = os.path.join(tmp_folder, file)
if not os.path.isfile(target):
wget.download(FILE_DICT[file], target)

settings = load_settings(DEFAULT_SETTINGS_PATH)
settings['experiment']['file_paths'] = [os.path.join(tmp_folder, 'test1.raw')]#,
#os.path.join(tmp_folder, 'test2.raw'),
#os.path.join(tmp_folder, 'test3.raw')]
#settings['experiment']['file_paths'] = [os.path.join(tmp_folder, 'thermo_IRT.raw')]
settings['experiment']['fasta_paths'] = [os.path.join(tmp_folder, 'IRT_fasta.fasta')]

import alphapept.interface
#settings = load_settings('/home/ubuntu/apps/alphapept/test_settings.yaml')

settings_ = alphapept.interface.import_raw_data(settings)
start = time()
settings_ = alphapept.interface.feature_finding(settings)
end = time()

te = end-start

print(f'Time elapsed {te}')
if name == "main":
main()`

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

1 participant