File tree 4 files changed +4
-2
lines changed
4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 103
103
XX(jl_copy_ast) \
104
104
XX(jl_copy_code_info) \
105
105
XX(jl_cpu_threads) \
106
+ XX(jl_effective_threads) \
106
107
XX(jl_crc32c_sw) \
107
108
XX(jl_create_system_image) \
108
109
XX(jl_cstr_to_string) \
Original file line number Diff line number Diff line change @@ -1635,6 +1635,7 @@ JL_DLLEXPORT int jl_errno(void) JL_NOTSAFEPOINT;
1635
1635
JL_DLLEXPORT void jl_set_errno (int e ) JL_NOTSAFEPOINT ;
1636
1636
JL_DLLEXPORT int32_t jl_stat (const char * path , char * statbuf ) JL_NOTSAFEPOINT ;
1637
1637
JL_DLLEXPORT int jl_cpu_threads (void ) JL_NOTSAFEPOINT ;
1638
+ JL_DLLEXPORT int jl_effective_threads (void ) JL_NOTSAFEPOINT ;
1638
1639
JL_DLLEXPORT long jl_getpagesize (void ) JL_NOTSAFEPOINT ;
1639
1640
JL_DLLEXPORT long jl_getallocationgranularity (void ) JL_NOTSAFEPOINT ;
1640
1641
JL_DLLEXPORT int jl_is_debugbuild (void ) JL_NOTSAFEPOINT ;
Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ JL_DLLEXPORT int jl_cpu_threads(void) JL_NOTSAFEPOINT
436
436
#endif
437
437
}
438
438
439
- int jl_effective_threads (void ) JL_NOTSAFEPOINT
439
+ JL_DLLEXPORT int jl_effective_threads (void ) JL_NOTSAFEPOINT
440
440
{
441
441
int cpu = jl_cpu_threads ();
442
442
int masksize = uv_cpumask_size ();
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ let exename = `$(Base.julia_cmd()) --startup-file=no --color=no`
218
218
219
219
# -t, --threads
220
220
code = " print(Threads.nthreads())"
221
- cpu_threads = ccall (:jl_cpu_threads , Int32, ())
221
+ cpu_threads = ccall (:jl_effective_threads , Int32, ())
222
222
@test string (cpu_threads) ==
223
223
read (` $exename --threads auto -e $code ` , String) ==
224
224
read (` $exename --threads=auto -e $code ` , String) ==
You can’t perform that action at this time.
0 commit comments