Skip to content
New issue

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

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

Already on GitHub? # to your account

C++ wrapper for CUDA class SP #2

Open
8 tasks
breznak opened this issue Aug 7, 2018 · 0 comments
Open
8 tasks

C++ wrapper for CUDA class SP #2

breznak opened this issue Aug 7, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@breznak
Copy link
Member

breznak commented Aug 7, 2018

with aim to run cudaSP seamlessly from C++. Ideally a drop-in replacement.

  • integrate HelloSP & SpatialPooler.cu into 1 file
    • there should be SpatialPooler.cu & a main.cu (main only calls initialization & compute of SP.cu)
  • cmake detect CUDA, nvcc & nVidia HW availability
    • cmake compile using nvcc & run tests
  • C++ wrapper
    • wrap all CUDA code with ifdef HAS_CUDA
    • SpatialPoolerCuda.hpp that wraps implemented cu code to c++ API (minimal initialize & compute)
    • SpatialPoolerCuda.cpp implements simple buffering
      • as c++ compute calls with a singleton data, while cu calls with block of data
    • cmake builds c++ wrapper
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant