-
Notifications
You must be signed in to change notification settings - Fork 113
Fix 1208 #1218
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
base: main
Are you sure you want to change the base?
Fix 1208 #1218
Changes from 10 commits
ac34770
9c465b5
d868f8a
07a1820
7c9bb63
fdf0468
a10558b
f8feb39
3321825
c65f686
e71a85a
dd08d1f
19998e9
b5518cf
672098e
56756ae
f7fb543
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,7 +169,7 @@ class sapporo { | |
|
|
||
| predict = false; | ||
| nj_modified = 0; | ||
|
|
||
| device.address_j = NULL; | ||
|
|
||
| device.t_j = NULL; | ||
|
|
@@ -182,8 +182,10 @@ class sapporo { | |
| device.acc_i = NULL; | ||
| device.vel_i = NULL; | ||
| device.jrk_i = NULL; | ||
|
|
||
|
|
||
| }; | ||
| int get_nj_max() const; | ||
| ~sapporo() {}; | ||
|
|
||
| int open(int cluster_id); | ||
|
|
@@ -230,3 +232,13 @@ class sapporo { | |
| }; | ||
|
|
||
| #endif | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be above the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, will do. |
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| int g6_get_nj_max_(); | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ | |
|
|
||
| #ifdef GPU | ||
| #include "grape.h" | ||
| #include "sapporo.h" | ||
| #endif | ||
|
|
||
| // AMUSE STOPPING CONDITIONS SUPPORT | ||
|
|
@@ -1153,3 +1154,12 @@ real jdata::get_tnext() | |
| int ndum; | ||
| return sched->get_list(NULL, ndum); | ||
| } | ||
|
|
||
| int jdata::get_nj_max() | ||
| { | ||
| #ifdef GPU | ||
| return g6_get_nj_max_(); | ||
| #else | ||
| return 0; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So on the CPU we support no particles at all? I think it makes sense to put a large number here, like
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yeah, that makes sense. I will add that. |
||
| #endif | ||
| } | ||
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.
This works fine, but maybe it belongs with
get_n_pipeson line 191?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.
Okay, you mean that would be a better place in terms of the program's logic?