Comments (3)
thereby I will ensure that other special operators cf. genn are working
from brian2cuda.
From device functions we can only call fmod(float, float)
and fmod(double, double)
. There is no support for long double
. If it is used, the compilation will fail with e.g.
error: more than one instance of overloaded function "_brian_mod" matches the argument list:
function "<unnamed>::_brian_mod(int, double)"
function "<unnamed>::_brian_mod(int, float)"
function "<unnamed>::_brian_mod(int, long long)"
function "<unnamed>::_brian_mod(int, unsigned long long)"
function "<unnamed>::_brian_mod(int, long)"
function "<unnamed>::_brian_mod(int, unsigned long)"
function "<unnamed>::_brian_mod(int, int)"
function "<unnamed>::_brian_mod(int, unsigned int)"
function "<unnamed>::_brian_mod(int, short)"
function "<unnamed>::_brian_mod(int, unsigned short)"
function "<unnamed>::_brian_mod(int, char)"
function "<unnamed>::_brian_mod(int, unsigned char)"
argument types are: (const int32_t, long double)
I couldn't think of a good way to warn the user about this. But when would anybody use modulo on long double
anyways?
For all other cases the modulo function should work now.
from brian2cuda.
Since the modulo function is working now, I'm closing this. I opened another issue for the question how to handle long double
and int
support of cuda math functions (#45).
from brian2cuda.
Related Issues (20)
- Parallelize effect application in heterogeneous delay mode over additional CUDA blocks HOT 1
- Reduce number of threads in push kernel for heterogeneous delays in bundle mode
- Implement special case connectivity matrices with pre/post IDs for models that effect only pre/post variables HOT 5
- Call reset kernel only with as many threads as there are spiking neurons (not as there are neurons in total)
- Refactor benchmarking scripts and update generated plots
- Check if storing the size of synapse groups is necessary? HOT 1
- Needs patch to run with Brian 2.4.2 HOT 2
- Optimize `StateMonitor`
- Impelement brian2cuda preference file support
- Copy all eventspace counters to host efficiently at each time step
- Investigate and document performance effects when working with `Subgroup`s HOT 1
- Consider partitioning eventspaces when using `Subgroup`s HOT 4
- Optimize `PopulationRateMonitor`
- Fix `SpikeMonitor` for `Subgroup`s HOT 1
- Optimize our `SpikeMonitor` for `Subgroups`
- Refactor test suite scripts
- Fix `ReferencError` in spatialneuron tests HOT 3
- Fix memory leak when having multiple `run` calls
- Spikes are lost when changing delays between `run` calls HOT 3
- Recent Brian2 update PR broke benchmark scripts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brian2cuda.