Add cuda inference example: #155 - #210
Open
a-vartenkov wants to merge 43 commits into
Open
Conversation
artiomn
requested changes
Jul 30, 2026
artiomn
requested changes
Jul 31, 2026
artiomn
requested changes
Aug 7, 2026
| for (auto iter = buffer.begin(); iter != buffer.end(); ++iter) | ||
| { | ||
| LongIndex current_neuron = (*iter).first; | ||
| // Filling offsets for skipped neurons: if first three are missing that would be (0, 0, 0, 0, 5... |
Contributor
There was a problem hiding this comment.
Скобку в комменте не закрыл.
artiomn
requested changes
Aug 11, 2026
a-vartenkov
commented
Aug 12, 2026
a-vartenkov
left a comment
Collaborator
Author
There was a problem hiding this comment.
Поисправлял основные. Порезолвь, посмотри, осталось ли чего.
artiomn
requested changes
Aug 13, 2026
a-vartenkov
commented
Aug 14, 2026
a-vartenkov
left a comment
Collaborator
Author
There was a problem hiding this comment.
Ответил на часть комментов.
artiomn
requested changes
Aug 14, 2026
| */ | ||
| __host__ unsigned long long count_values_by_indexes(const ValueIndex &index, | ||
| const CUDAVectorView<cuda::SpikeIndex> inputs); | ||
|
|
Contributor
There was a problem hiding this comment.
После функций идёт 2 пустые строки.
| for (auto iter = buffer.begin(); iter != buffer.end(); ++iter) | ||
| { | ||
| LongIndex current_neuron = (*iter).first; | ||
| // Filling offsets for skipped neurons: if first three are missing that would be (0, 0, 0, 0, 5... |
artiomn
requested changes
Aug 14, 2026
artiomn
requested changes
Aug 14, 2026
| REGISTER_CUDA_VECTOR_TYPE(knp::backends::gpu::cuda::CUDABackendImpl::PopulationVariants); \ | ||
| REGISTER_CUDA_VECTOR_TYPE(knp::backends::gpu::cuda::CUDABackendImpl::ProjectionVariants); \ | ||
| REGISTER_CUDA_VECTOR_TYPE(knp::backends::gpu::cuda::CUDAPopulation<knp::neuron_traits::BLIFATNeuron>); \ | ||
| REGISTER_CUDA_VECTOR_TYPE(knp::backends::gpu::cuda::CUDAProjection<knp::synapse_traits::DeltaSynapse>); \ |
Contributor
There was a problem hiding this comment.
Хотя бы коммент поставь, что надо сделать циклическим макросом.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding CUDA inference example. Now CUDA backend works at least with a decent speed.