meson update
This commit is contained in:
2
.clangd
2
.clangd
@@ -1,2 +1,2 @@
|
|||||||
CompileFlags:
|
CompileFlags:
|
||||||
Remove: ['-Xcompiler=-Wall,-Winvalid-pch','-rdc=true','-prec-div=false','-Xptxas','-ftz=true','-prec-sqrt=false','-gencode','--default-stream','--expt-relaxed-constexpr']
|
Remove: ['-Xcompiler=-Wall,-Winvalid-pch','-rdc=true','-prec-div=false','-Xptxas','-ftz=true','-prec-sqrt=false','-gencode','--default-stream','--expt-relaxed-constexpr','-G']
|
||||||
10
meson.build
10
meson.build
@@ -23,8 +23,7 @@ common_cpp_flags = [
|
|||||||
|
|
||||||
common_cuda_flags = [
|
common_cuda_flags = [
|
||||||
'-rdc=true',
|
'-rdc=true',
|
||||||
'-Xptxas',
|
'-Xptxas', '-O3',
|
||||||
'-O3',
|
|
||||||
'-use_fast_math',
|
'-use_fast_math',
|
||||||
'-ftz=true',
|
'-ftz=true',
|
||||||
'-prec-div=false',
|
'-prec-div=false',
|
||||||
@@ -39,9 +38,9 @@ add_project_arguments(common_cpp_flags, language: 'cpp')
|
|||||||
add_project_arguments(common_cuda_flags, language: 'cuda')
|
add_project_arguments(common_cuda_flags, language: 'cuda')
|
||||||
|
|
||||||
if get_option('buildtype') == 'release'
|
if get_option('buildtype') == 'release'
|
||||||
add_project_arguments(['-DRELEASE', '-DAVX2'], language: ['cpp', 'cuda'])
|
add_project_arguments(['-DRELEASE'], language: ['cpp', 'cuda'])
|
||||||
elif get_option('buildtype') == 'debug'
|
elif get_option('buildtype') == 'debug'
|
||||||
add_project_arguments(['-DDEBUG', '-g', '-O0', '-DAVX2'], language: ['cpp', 'cuda'])
|
add_project_arguments(['-DDEBUG'], language: ['cpp', 'cuda'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cpp_sources = ['sources/main.cpp'] + files(run_command('find', 'libs', '-name','*.h').stdout().split())
|
cpp_sources = ['sources/main.cpp'] + files(run_command('find', 'libs', '-name','*.h').stdout().split())
|
||||||
@@ -50,10 +49,11 @@ cuda_sources = ['sources/main.cu'] + files(run_command('find', 'libs', '-name',
|
|||||||
executable(
|
executable(
|
||||||
'yggmcu',
|
'yggmcu',
|
||||||
sources: cuda_sources,
|
sources: cuda_sources,
|
||||||
|
link_args: ['-lcudart', '-L/usr/local/cuda/lib64'],
|
||||||
)
|
)
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
'yggmc',
|
'yggmc',
|
||||||
sources: cpp_sources,
|
sources: cpp_sources,
|
||||||
dependencies: dependency('libsodium'),
|
dependencies: dependency('libsodium'),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[binaries]
|
[binaries]
|
||||||
cpp = 'clang++'
|
cpp = 'clang++'
|
||||||
cuda = 'nvcc'
|
cuda = '/opt/cuda/bin/nvcc'
|
||||||
cuda_host_compiler = 'gcc-14'
|
cuda_host_compiler = '/opt/cuda/bin/nvcc'
|
||||||
Reference in New Issue
Block a user