Skip to content

Commit ba77927

Browse files
authored
Merge pull request #829
Updates for PrettyTables 3
2 parents e52785e + ffd89b5 commit ba77927

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ LLD_jll = "15, 16, 17, 18, 19"
5858
LLVM = "9"
5959
LLVM_jll = "15, 16, 17, 18, 19"
6060
Preferences = "1"
61-
PrettyTables = "2"
61+
PrettyTables = "3"
6262
ROCmDeviceLibs_jll = "=5.6.1, =6.2.1"
6363
Random123 = "1.6"
6464
RandomNumbers = "1.5"

src/hip/device.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ function __pretty_data(dev::HIPDevice)
168168
end
169169

170170
function Base.show(io::IO, mime::MIME{Symbol("text/plain")}, dev::HIPDevice)
171-
PrettyTables.pretty_table(io, __pretty_data(dev); header=[
171+
PrettyTables.pretty_table(io, __pretty_data(dev); column_labels=[
172172
"Id", "Name", "GCN arch", "Wavefront", "Memory", "Shared Memory"])
173173
end
174174

175175
function Base.show(io::IO, mime::MIME{Symbol("text/plain")}, devs::Vector{HIPDevice})
176-
PrettyTables.pretty_table(io, vcat(__pretty_data.(devs)...); header=[
176+
PrettyTables.pretty_table(io, vcat(__pretty_data.(devs)...); column_labels=[
177177
"Id", "Name", "GCN arch", "Wavefront", "Memory", "Shared Memory"])
178178
end

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function versioninfo()
1515
_status(functional(:MIOpen)) "MIOpen" _ver(:MIOpen, MIOpen.version) _libpath(libMIOpen_path);
1616
]
1717

18-
PrettyTables.pretty_table(data; header=[
18+
PrettyTables.pretty_table(data; column_labels=[
1919
"Available", "Name", "Version", "Path"],
2020
alignment=[:c, :l, :l, :l])
2121

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ AMDGPU.versioninfo()
109109

110110
@info "Test suite info"
111111
data = String["$np" "$(AMDGPU.device())" join(TARGET_TESTS, ", ");]
112-
PrettyTables.pretty_table(data; header=["Workers", "Device", "Tests"], crop=:none)
112+
PrettyTables.pretty_table(data; column_labels=["Workers", "Device", "Tests"],
113+
fit_table_in_display_vertically=false,
114+
fit_table_in_display_horizontally=false)
113115

114116
runtests(AMDGPU; nworkers=np, nworker_threads=1, testitem_timeout=60 * 30) do ti
115117
for tt in TARGET_TESTS

0 commit comments

Comments
 (0)