aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/nbody.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/c/nbody.c')
-rw-r--r--test/c/nbody.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/c/nbody.c b/test/c/nbody.c
index 530c41fa..01b36d5a 100644
--- a/test/c/nbody.c
+++ b/test/c/nbody.c
@@ -140,7 +140,11 @@ void setup_bodies(void)
int main(int argc, char ** argv)
{
+#ifdef __KVX__
+ int n = argc < 2 ? 100 : atoi(argv[1]);
+#else
int n = argc < 2 ? 1000000 : atoi(argv[1]);
+#endif
int i;
setup_bodies();