Skip to content

Commit

Permalink
misc: expand compat for cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
awadell1 committed Jun 6, 2024
1 parent ff4c2d0 commit 3ceeb6e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
arch:
- x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand All @@ -32,11 +32,25 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

legacy:
name: Test Min Compat Bounds
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-downgrade-compat@v1
if: ${{ matrix.os == 'ubuntu-latest' }}
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1.9
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1

action:
name: Test Github action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/cache@v1
- uses: "./"
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ CodecZlib = "0.7"
Dates = "1.9"
JSON = "0.21"
LibGit2 = "1.9"
Revise = "3"
NVTX = "0.3"
Pkg = "1.9"
Profile = "1.9"
Revise = "3"
Statistics = "1.9"
Test = "1.9"
UUIDs = "1.9"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ PkgJogger = "10150987-6cc1-4b76-abee-b1c1cbd91c01"
Profile = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"

[compat]
Documenter = "1.2"
Documenter = "1.4"
2 changes: 1 addition & 1 deletion ext/PkgJoggerCUDAExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Profiles the benchmark using [`CUDA.@profile`](@ref).
"""
function PkgJogger.profile(::Val{Symbol(:cuda)}, id, b::PkgJogger.BenchmarkTools.Benchmark; verbose)
id_str = join(id, "/")
CUDA.@profile begin
CUDA.@profile external=true begin
NVTX.@range id_str begin
PkgJogger.BenchmarkTools.run(b)
end
Expand Down
2 changes: 1 addition & 1 deletion src/profile.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function profile(suite, profiler::Symbol; verbose=false, ref=nothing, kwargs...)
leaf = leaves(suite)
leaf = BenchmarkTools.leaves(suite)
@assert length(leaf) == 1 "Profiling Support is limited to one benchmark at a time"
id, benchmark = first(leaf)
warmup(suite; verbose)
Expand Down

0 comments on commit 3ceeb6e

Please sign in to comment.