question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kilosort3 on dandihub

See original GitHub issue

I’m having trouble running kilosort3 singularity on dandi hub.


!pip install git+https://github.com/SpikeInterface/spikeinterface


import spikeinterface.sorters as ss
from spikeinterface.core.testing_tools import generate_recording

recording = generate_recording(
    num_channels=32,
    sampling_frequency=30000.,  # in Hz
    durations=[120],
    set_probe=True,
    ndim=2,
)

recording2 = recording.save(folder="test_recording2")
write_binary_recording with n_jobs 1  chunk_size None
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
Input In [9], in <module>
      4 recording = generate_recording(
      5     num_channels=32,
      6     sampling_frequency=30000.,  # in Hz
   (...)
      9     ndim=2,
     10 )
     12 recording2 = recording.save(folder="test_recording2")
---> 13 sorting = ss.run_kilosort3(recording2, singularity_image=True, verbose=True)

File /opt/conda/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py:611, in run_kilosort3(*args, **kwargs)
    610 def run_kilosort3(*args, **kwargs):
--> 611     return run_sorter('kilosort3', *args, **kwargs)

File /opt/conda/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py:108, in run_sorter(sorter_name, recording, output_folder, remove_existing_folder, delete_output_folder, verbose, raise_error, docker_image, singularity_image, with_output, **sorter_params)
     95 common_kwargs = dict(
     96     sorter_name=sorter_name,
     97     recording=recording,
   (...)
    104     **sorter_params,
    105 )
    107 if docker_image or singularity_image:
--> 108     return run_sorter_container(
    109         container_image=docker_image if isinstance(docker_image, str) else singularity_image,
    110         mode="docker" if docker_image else "singularity",
    111         **common_kwargs,
    112     )
    114 return run_sorter_local(**common_kwargs)

File /opt/conda/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py:397, in run_sorter_container(sorter_name, recording, mode, container_image, output_folder, remove_existing_folder, delete_output_folder, verbose, raise_error, with_output, extra_requirements, **sorter_params)
    395 if use_gpu:
    396     if gpu_capability == 'nvidia-required':
--> 397         assert has_nvidia(), "The container requires a NVIDIA GPU capability, but it is not available"
    398         extra_kwargs['container_requires_gpu'] = True
    399     elif gpu_capability == 'nvidia-optional':

AssertionError: The container requires a NVIDIA GPU capability, but it is not available

I did start a GPU instance. I tried again just to make sure. Any ideas what might be going on here? @chyumin , you were able to git ks3 to run on dandi hub, right?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chyumincommented, Jun 14, 2022

We need to find another way to test nvidia gpu availability

1reaction
alejoe91commented, Jun 14, 2022

@bendichter just to double check you get normal output for nvidia-smi?

Read more comments on GitHub >

github_iconTop Results From Across the Web

determine if gpu is enabled on hub · Issue #36 · dandi/dandi-hub ...
This is blocking us from running containerized spike sorters on DANDI Hub. ... kilosort3 on dandihub SpikeInterface/spikeinterface#705.
Read more >
Marius Pachitariu @marius10p@qoto.org on Twitter ...
Releasing #Kilosort3 for spike sorting neurons in ephys recordings! Live footage of #Kilosort3 at work: Embedded video. 0:05. 21K views.
Read more >
Issues - spikeinterface - SpikeInterface - Geeks
kilosort3 on dandihub. #705 opened 3 months ago by bendichter · 5 · how to solve "spikeinterface.sorters.utils.misc.SpikeSortingError: Spike sorting failed.
Read more >
Kilosort - Open Neuroscience
In many cases, and especially for Neuropixels probes, the automated output of Kilosort3 requires minimal manual curation.
Read more >
spikeinterface - bytemeta
kilosort3 on dandihub. phanhuynh. phanhuynh CLOSED · Updated 1 month ago · Kilosort error: sgemm in CUBLAS failed · Previous Next.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found