Skip to content

Commit 9f781c3

Browse files
committed
Update InMemoryDatasets.jl
1 parent cc2da64 commit 9f781c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/InMemoryDatasets.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ include("precompile/create_sysimage.jl")
193193

194194
function __init__()
195195
if Threads.nthreads() == 1
196-
@warn "Julia started with single thread, to enable multithreaded functionalities in InMemoryDatasets.jl start Julia with multiple threads."
196+
if get(ENV, "IMD_WARN_THREADS", "1") == "1"
197+
@warn "Julia started with single thread, to enable multithreaded functionalities in InMemoryDatasets.jl start Julia with multiple threads."
198+
end
197199
end
198200
end
199201
end

0 commit comments

Comments
 (0)