Skip to content

Minimal project to be used as baseline for tests on CUDA, HIP and OpenCL tests, eg. separable compilation

Notifications You must be signed in to change notification settings

mconcas/GPUCompilationTests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPUCompilationTest

Minimal project to be used as baseline for tests on CUDA, HIP and OpenCL tests, eg. separable compilation

Build

mkdir build && cd build && cmake .. && make

Tests

Separable compilation

From build directory:

$> ./build/cuda/bin/testCudaSeparable
Kernel on library -> a: 42, b: 3.140000, c: 2.718282
Kernel on main executable -> a: 42, b: 3.140000, c: 2.718282
$> ./build/hip/bin/testHIPSeparable
Kernel on library -> a: 42, b: 3.140000, c: 2.718282
Kernel on main executable -> a: 42, b: 3.140000, c: 2.718282

GPU memory benchmark

# CUDA
$> ./build/cuda/benchmark/gpu-memory-benchmark-cuda -p239
# HIP
$> ./build/hip/benchmark/gpu-memory-benchmark-hip -p239

About

Minimal project to be used as baseline for tests on CUDA, HIP and OpenCL tests, eg. separable compilation

Resources

Stars

Watchers

Forks