Skip to content

Instantly share code, notes, and snippets.

View ranocha's full-sized avatar

Hendrik Ranocha ranocha

View GitHub Profile
@ranocha
ranocha / README.md
Created November 25, 2021 08:22
Empirical roofline model with LIKWID.jl - operational intensity varies
@ranocha
ranocha / Manifest.toml
Last active November 25, 2021 18:19
Construct roofline model for Trixi.jl volume terms
# This file is machine-generated - editing it directly is not advised
julia_version = "1.7.0-rc3"
manifest_format = "2.0"
[[deps.AbstractFFTs]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "485ee0867925449198280d4af84bdb46a2a404d0"
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
version = "1.0.1"
@ranocha
ranocha / mesh_uniform_cartesian.mesh
Last active May 6, 2021 10:59
2D uniform Cartesian mesh in [-10, 10]^2 with 16^2 elements
ISM-V2
289 544 256 1
-10.0000000000000 -10.0000000000000
-8.75000000000000 -10.0000000000000
-7.50000000000000 -10.0000000000000
-6.25000000000000 -10.0000000000000
-5.00000000000000 -10.0000000000000
-3.75000000000000 -10.0000000000000
-2.50000000000000 -10.0000000000000
-1.25000000000000 -10.0000000000000
@ranocha
ranocha / trixi_benchmark_example_comparison.md
Created April 12, 2021 07:27
Example benchmark results for Trixi

Benchmark Report for /home/runner/work/Trixi.jl/Trixi.jl

Job Properties

  • Time of benchmarks:
    • Target: 11 Apr 2021 - 18:51
    • Baseline: 11 Apr 2021 - 19:12
  • Package commits:
    • Target: 8c5844
    • Baseline: f4a7c5
  • Julia commits:
@ranocha
ranocha / trixi_benchmark_example_single.md
Created April 10, 2021 06:45
Example benchmark results for Trixi

Benchmark Report for ~/.julia/dev/Trixi

Job Properties

  • Time of benchmark: 10 Apr 2021 - 8:40
  • Package commit: dirty
  • Julia commit: f9720d
  • Julia command flags: -Cnative,-g1,--check-bounds=no,--threads=1
  • Environment variables: None

Results

using Plots
#=
results obtained from running
for polydeg in 1:7
@show polydeg
tabulate_benchmarks(benchmark_euler, levels=0:8, polydeg=polydeg)
end
with https://github.com/jlchan/ESDG.jl/blob/refactor/Trixi_comparison/benchmark_JC/benchmark_euler2D.jl
@ranocha
ranocha / benchmark_trixi.jl
Last active January 29, 2021 20:53
Benchmark some common RHS evaluations on a uniform 2D mesh in Trixi.jl
#!/usr/bin/env julia
# Benchmark some common RHS evaluations on a uniform 2D mesh in Trixi.jl
using Pkg
Pkg.activate(temp=true)
Pkg.add("BenchmarkTools")
Pkg.add("Trixi")
using LinearAlgebra
BLAS.set_num_threads(Threads.nthreads())
@ranocha
ranocha / sgemv.c
Last active August 14, 2018 09:26
CLBlast_trsv_event
// compile and run with
// gcc -I../include -O2 -Wall sgemv.c -o sgemv -lOpenCL -L . -lclblast; ./sgemv
// in the build directory of CLBlast
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
#include <clblast_c.h>
@ranocha
ranocha / output_nvidia.txt
Created June 26, 2018 15:33
CLBlast tests
This file has been truncated, but you can view the full file.
[ 2%] Built target test_correctness_common
[ 46%] Built target clblast
[ 47%] Built target clblast_test_xgemmbatched
[ 48%] Built target clblast_test_xspr
[ 48%] Built target clblast_test_xsymm
[ 50%] Built target clblast_test_xspmv
[ 51%] Built target clblast_test_xscal
[ 52%] Built target clblast_test_xtrmv
[ 53%] Built target clblast_test_xcopy
[ 55%] Built target clblast_test_xgeru