New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testsuite::issue-521 - *_hpc connections return local id instead of g… #714
Merged
Merged
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b63fb99
new start for 10k release
tillschumann 231d1da
ifdef for BQG inserted
tillschumann 6d7b542
typedef for int32 and int64
tillschumann 9a1f189
missing type fixed
tillschumann e57694f
typedef changed
tillschumann 560ca6a
mempredictor output instead of bad alloc for std allocs
tillschumann b6aa8b9
new thread connect
tillschumann 8ad57ea
Merge remote-tracking branch 'refs/remotes/origin/master'
d988071
Merge remote-tracking branch 'upstream/master'
83049be
sync with upstream
c4a71c0
testsuite::issue-521 - *_hpc connections return local id instead of g…
79aa6c6
Merge remote-tracking branch 'upstream/master' into issue_521
3afc16a
Merge remote-tracking branch 'upstream/master' into issue_521
1790c99
clang style fixed
5d67f07
Merge branch 'issue_521' of https://github.com/tillschumann/nest-simu…
8393522
Suggest changes for PR #714
ae9062b
Merge pull request #1 from suku248/issue_521_2
tillschumann d39c8a4
changes reversed and tests adapted according to S. Kunkel
a275cf3
changes reversed and tests adapted according to S. Kunkel
3b628d4
Merge branch 'issue_521' of https://github.com/tillschumann/nest-simu…
44ad357
Merge branch 'issue_521' of https://github.com/tillschumann/nest-simu…
618b42c
Merge branch 'issue_521' of https://github.com/tillschumann/nest-simu…
e9e34d2
Merge branch 'master' of https://github.com/nest/nest-simulator
24da748
integrate comments
11077fe
Merge branch 'master' of https://github.com/nest/nest-simulator
dc6cf77
Merge branch 'master' into issue_521
6b0e686
Update issue-521.sli
heplesser File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* issue-521.sli | ||
* | ||
* This file is part of NEST. | ||
* | ||
* Copyright (C) 2004 The NEST Initiative | ||
* | ||
* NEST is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* NEST is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with NEST. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
|
||
/* BeginDocumentation | ||
Name: testsuite::issue-521 - *_hpc connections return local id instead of global id of target neuron | ||
|
||
*_hpc connections should only return thread_local_target instead of target | ||
to avoid confusion | ||
|
||
FirstVersion: 04/2017 | ||
Author: Till Schumann | ||
*/ | ||
|
||
(unittest) run | ||
/unittest using | ||
|
||
skip_if_not_threaded | ||
|
||
/test_targets | ||
{ | ||
dup /threads Set | ||
ResetKernel | ||
0 << /local_num_threads threads >> SetStatus | ||
|
||
|
||
% create set of neurons | ||
/iaf_psc_alpha 20 Create | ||
|
||
% connect two neurons (prime number to increase variations of thread placement) | ||
5 13 /static_synapse Connect | ||
5 13 /static_synapse_hpc Connect | ||
|
||
% store info from target neuron for comparison | ||
13 GetStatus /target_dict Set | ||
|
||
<< >> GetConnections 0 get GetStatus /conn_dict Set | ||
<< >> GetConnections 1 get GetStatus /conn_hpc_dict Set | ||
|
||
|
||
/* normal connection should contain global_id as target */ | ||
conn_dict /target get target_dict /global_id get eq assert_or_die | ||
|
||
/* same for hpc connection */ | ||
conn_hpc_dict /target get target_dict /global_id get eq assert_or_die | ||
|
||
|
||
} def | ||
|
||
|
||
/* test runs with different number of threads */ | ||
1 test_targets | ||
2 test_targets | ||
4 test_targets | ||
8 test_targets | ||
16 test_targets | ||
|
||
endusing |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any special significance to using neurons 5 and 13? If so, it would be good to explain it briefly.