diff --git a/docs/v0.1.0/.documenter-siteinfo.json b/docs/v0.1.0/.documenter-siteinfo.json index 2c5f3c1..34526a5 100644 --- a/docs/v0.1.0/.documenter-siteinfo.json +++ b/docs/v0.1.0/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-11T10:54:13","documenter_version":"1.3.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-11T20:04:29","documenter_version":"1.3.0"}} \ No newline at end of file diff --git a/src/generic_logging.jl b/src/generic_logging.jl index e5761a2..599a6bf 100644 --- a/src/generic_logging.jl +++ b/src/generic_logging.jl @@ -10,9 +10,11 @@ module GenericLogging export @logged export setup_logger +using Base.Threads using Daf.GenericTypes using Daf.Messages using Dates +using Distributed using ExprTools using Logging @@ -156,6 +158,12 @@ function metafmt( # untested if show_time push!(prefix_parts, Dates.format(now(), "yyyy-mm-dd HH:MM:SS.sss")) end + if nprocs() > 1 + push!(prefix_parts, "P$(myid())") # untested + end + if nthreads() > 1 + push!(prefix_parts, "T$(threadid())") + end push!(prefix_parts, string(level == Warn ? "Warning" : string(level))) if show_module push!(prefix_parts, string(_module)) diff --git a/src/matrix_layouts.jl b/src/matrix_layouts.jl index 19853cb..63a7734 100644 --- a/src/matrix_layouts.jl +++ b/src/matrix_layouts.jl @@ -98,6 +98,10 @@ function major_axis(::AbstractSparseMatrix)::Maybe{Int8} return Columns end +function major_axis(::BitMatrix)::Maybe{Int8} # untested + return Columns +end + function major_axis(matrix::AbstractMatrix)::Maybe{Int8} try matrix_strides = strides(matrix)