Julia Interface to the Cpp and CUDA parts of GENN. #542
Replies: 2 comments 11 replies
-
I know nothing about Julia but I think you can call into Python so, if that extends to numpy arrays, then you could copy your arrays straight into PyGeNN easily enough. The python version of https://genn-team.github.io/genn/documentation/4/html/d5/d39/subsect34.html describes how to manually set sparse connectivity from two lists/numpy arrays. |
Beta Was this translation helpful? Give feedback.
-
To get Julia support for Genn, all the compiled code that lives in (all the *.so files) can in theory be wrapped in: https://github.com/JuliaInterop/CxxWrap.jl But I would need to add a Lines 31 to 36 in 6b09eaa ifdef DYNAMIC ifeq ($(DARWIN),DARWIN) mkdir -p $(@d) install_name_tool -id "@loader_path/$(@f)" $@ else mkdir -p $(@d) endif else mkdir -p $(@d) endif -include $(DEPS)
%.d: ; With
Which may not even make sense because I think (CXX) evaluates to I am sure there would be a way to do it. That compilation to make the cpp discoverable is just writing the Julia wrapper code. I have established that building Genn inside a julia environment is possible on all platforms using: |
Beta Was this translation helpful? Give feedback.
-
Even though its currently un-supported, do you think it would be possible to program GENN using Julia instead of Python?
GENN is a code generator and Julia is good for meta-programming, so I am guessing this might be an okay idea. Furthermore, Julia has some support of cpp, and great support for CUDA.
I have some connectivity matrices that I have wrangled from the Sonata format (HDF5) Allen Brain V1 model.
https://github.com/russelljjarvis/getConnectomes/blob/main/load_allen_measured_model.jl
Could I hack this cpp example to use my connection matrices using codegen that comes from inside Julia?
https://genn-team.github.io/genn/documentation/4/html/dc/d7e/Tutorial2.html
Beta Was this translation helpful? Give feedback.
All reactions