Skip to content

Commit

Permalink
explicit imports
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Feb 26, 2024
1 parent 5384e04 commit bc55d55
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/Core2CoreLatency/Core2CoreLatency.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Core2CoreLatency

using ..ThreadPinning: pinthread, pinthreads, getcpuids, @spawnat
using ..ThreadPinning: pinthread, @spawnat

const State = Int
const Preparing = 0
Expand Down
84 changes: 42 additions & 42 deletions src/ThreadPinning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module ThreadPinning

# imports
using Base.Threads: @threads, nthreads, threadid
using Libdl
using LinearAlgebra
import Random
using DelimitedFiles
using DocStringExtensions
using Libdl: Libdl
using LinearAlgebra: BLAS, rank
using Random: Random
using DelimitedFiles: readdlm
using DocStringExtensions: SIGNATURES, TYPEDSIGNATURES
using StableTasks: @spawnat

const DEFAULT_IO = Ref{Union{IO, Nothing}}(nothing)
Expand Down Expand Up @@ -159,42 +159,42 @@ end

# exports
export threadinfo,
pinthreads,
pinthreads_likwidpin,
pinthreads_mpi,
pinthread,
with_pinthreads,
setaffinity,
getcpuids,
getcpuid,
getnumanode,
getnumanodes,
unpinthreads,
unpinthread,
@tspawnat,
print_affinity_mask,
print_affinity_masks,
ncputhreads,
ncores,
nnuma,
nsockets,
ncputhreads_per_core,
ncputhreads_per_numa,
ncputhreads_per_socket,
ncores_per_numa,
ncores_per_socket,
hyperthreading_is_enabled,
ishyperthread,
cpuids_all,
cpuids_per_core,
cpuids_per_numa,
cpuids_per_socket,
cpuids_per_node,
node,
socket,
sockets,
numa,
numas,
core
pinthreads,
pinthreads_likwidpin,
pinthreads_mpi,
pinthread,
with_pinthreads,
setaffinity,
getcpuids,
getcpuid,
getnumanode,
getnumanodes,
unpinthreads,
unpinthread,
@tspawnat,
print_affinity_mask,
print_affinity_masks,
ncputhreads,
ncores,
nnuma,
nsockets,
ncputhreads_per_core,
ncputhreads_per_numa,
ncputhreads_per_socket,
ncores_per_numa,
ncores_per_socket,
hyperthreading_is_enabled,
ishyperthread,
cpuids_all,
cpuids_per_core,
cpuids_per_numa,
cpuids_per_socket,
cpuids_per_node,
node,
socket,
sockets,
numa,
numas,
core
# cores
end
4 changes: 2 additions & 2 deletions src/preferences.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Prefs

using Preferences
using DocStringExtensions
using Preferences: @has_preference, @load_preference, @set_preferences!, @delete_preferences!
using DocStringExtensions: SIGNATURES
using ..ThreadPinning: getstdout

const ALL_PREFERENCES = ("autoupdate", "pin", "likwidpin", "os_warning")
Expand Down

0 comments on commit bc55d55

Please sign in to comment.