Skip to content

Commit

Permalink
Update C tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince781 committed Apr 5, 2019
1 parent 0ff5b1b commit 4cce5aa
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions tests/c/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project('blas2cuda-tests', 'c',
default_options: ['c_std=gnu11'],
license: 'GPL3+',
meson_version: '>= 0.49.0')
meson_version: '>= 0.45.0')

exe_prefixes = [
'copy',
Expand All @@ -15,18 +15,10 @@ exe_prefixes = [

cc = meson.get_compiler('c')

blas_libs = {
'mkl': cc.find_library('mkl_rt'),
'tatlas': dependency('tatlas', required: false),
'cblas': dependency('cblas', required: false),
}
libblas_dep = cc.find_library('mkl_rt')

incdir = include_directories('.')

foreach prefix : exe_prefixes
foreach suffix, dep : blas_libs
if dep.found()
executable(prefix + '-' + suffix, [prefix + '.c', 'test.c'], include_directories: incdir, dependencies: [dep])
endif
endforeach
executable(prefix, [prefix + '.c', 'test.c'], include_directories: incdir, dependencies: [libblas_dep])
endforeach

0 comments on commit 4cce5aa

Please sign in to comment.