Skip to content

Commit

Permalink
[Meson] Add a compiler for *.cu files
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 12, 2024
1 parent f2f66bc commit 7e2c2e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(
'SPRAL',
'c', 'cpp', 'fortran',
'c', 'cpp', 'fortran', 'cuda',
version: '2023.11.15',
license: 'BSD-3',
meson_version: '>= 0.63.0',
Expand Down Expand Up @@ -161,6 +161,7 @@ libspral = library('spral',
# Binary
executable('spral_ssids',
sources : binspral_src,
dependencies : libcuda,
link_with : libspral,
link_language : 'fortran',
install : true)
Expand All @@ -184,7 +185,7 @@ if build_tests
file = test[1]
test(name,
executable(name, file, link_with : libspral, dependencies : libspral_deps, link_language : 'fortran',
include_directories: libspral_include , install : true, install_dir : fortran_tests_folder),
include_directories: libspral_include, install : true, install_dir : fortran_tests_folder),
timeout : 300, is_parallel : false)
endforeach

Expand Down
1 change: 0 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ if libmetis_version == '4'
else
libspral_src += files('metis5_wrapper.F90')
endif

1 change: 1 addition & 0 deletions src/ssids/gpu/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if build_gpu and libcuda.found()
'cpu_solve.f90',
'datatypes.f90',
'dense_factor.f90',
'factor.f90',
'interfaces.f90',
'smalloc.f90',
'solve.f90',
Expand Down

0 comments on commit 7e2c2e6

Please sign in to comment.