File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,10 @@ int main(void) {
261
261
std::printf (" Welcome to the Fork Union N-Body simulation!\n " );
262
262
263
263
// Read env vars
264
- std::size_t n = std::stoul (std::getenv (" NBODY_COUNT" ) ?: " 0" );
265
- std::size_t const iterations = std::stoul (std::getenv (" NBODY_ITERATIONS" ) ?: " 1000" );
264
+ std::size_t n = std::stoull (std::getenv (" NBODY_COUNT" ) ?: " 0" );
265
+ std::size_t const iterations = std::stoull (std::getenv (" NBODY_ITERATIONS" ) ?: " 1000" );
266
266
std::string_view const backend = std::getenv (" NBODY_BACKEND" ) ? std::getenv (" NBODY_BACKEND" ) : " fork_union_static" ;
267
- std::size_t threads = std::stoul (std::getenv (" NBODY_THREADS" ) ?: " 0" );
267
+ std::size_t threads = std::stoull (std::getenv (" NBODY_THREADS" ) ?: " 0" );
268
268
if (threads == 0 ) threads = std::thread::hardware_concurrency ();
269
269
if (n == 0 ) n = threads;
270
270
You can’t perform that action at this time.
0 commit comments