From a9a83e9f442812ccaa0cf8ca9363f05e3d20f25f Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 20 Sep 2023 22:33:44 +0200 Subject: [PATCH 1/2] Link to CUDA.jl 5.0 blog post. --- post/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/post/index.md b/post/index.md index e710e5e..77d5a18 100644 --- a/post/index.md +++ b/post/index.md @@ -1,6 +1,11 @@ +++ title = "Blog" external_entries = [ + ( + Date(2023, 9, 19), + "CUDA.jl 5.0: Integrated Profiles and Task Synchronization Changes", + "https://info.juliahub.com/cuda-jl-5-0-changes" + ), ( Date(2020, 1, 14), "Julia's Dramatic Rise in HPC and Elsewhere", From 30dc7047b96e123c27587573a9cee0d15a4e4925 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 26 Sep 2023 10:27:56 +0200 Subject: [PATCH 2/2] Redirect from an actual post instead. --- post/2023-09-19-cuda_5.0.md | 182 ++++++++++++++++++++++++++++++++++++ post/index.md | 5 - utils.jl | 24 ++++- 3 files changed, 205 insertions(+), 6 deletions(-) create mode 100644 post/2023-09-19-cuda_5.0.md diff --git a/post/2023-09-19-cuda_5.0.md b/post/2023-09-19-cuda_5.0.md new file mode 100644 index 0000000..16c7cb9 --- /dev/null +++ b/post/2023-09-19-cuda_5.0.md @@ -0,0 +1,182 @@ ++++ +title = "CUDA.jl 5.0: Integrated profiler and task synchronization changes" +author = "Tim Besard" +external = true +abstract = """ + CUDA.jl 5.0 is an major release that adds an integrated profiler to CUDA.jl, and reworks + how tasks are synchronized. The release is slightly breaking, as it changes how local + toolkits are handled and raises the minimum Julia and CUDA versions.""" ++++ + +{{abstract}} + +{{ redirect "https://info.juliahub.com/cuda-jl-5-0-changes" }} + + + diff --git a/post/index.md b/post/index.md index 77d5a18..e710e5e 100644 --- a/post/index.md +++ b/post/index.md @@ -1,11 +1,6 @@ +++ title = "Blog" external_entries = [ - ( - Date(2023, 9, 19), - "CUDA.jl 5.0: Integrated Profiles and Task Synchronization Changes", - "https://info.juliahub.com/cuda-jl-5-0-changes" - ), ( Date(2020, 1, 14), "Julia's Dramatic Rise in HPC and Elsewhere", diff --git a/utils.jl b/utils.jl index ccb237e..b76a868 100644 --- a/utils.jl +++ b/utils.jl @@ -27,6 +27,27 @@ function getdate(fname) return parse.(Int, (y, m, d)) end +function hfun_redirect(params) + url = params[1] + + # XXX: is this safe? + #Franklin.set_var!(Franklin.LOCAL_VARS, "fd_full_url", url) + + return """ + + + + + + +

This blog post is located at $url

+ """ +end + function hfun_post_date() # capture the RSS publication date from the file name fd_url = locvar(:fd_url)::String @@ -72,11 +93,12 @@ function blogpost_entry(fpath) if hidden === true return nothing end + ext = something(pagevar(rpath, :external), false) title = pagevar(rpath, :title)::String y, m, d = getdate(fpath) rpath = replace(fpath, r"\.md$" => "") date = Date(y, m, d) - return (date, blogpost_entry_html("/post/$rpath/", title, y, m, d)) + return (date, blogpost_entry_html("/post/$rpath/", title, y, m, d; ext)) end function blogpost_external_entries()