meson update
This commit is contained in:
2
.clangd
2
.clangd
@@ -1,2 +1,2 @@
|
||||
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']
|
||||
@@ -23,8 +23,7 @@ common_cpp_flags = [
|
||||
|
||||
common_cuda_flags = [
|
||||
'-rdc=true',
|
||||
'-Xptxas',
|
||||
'-O3',
|
||||
'-Xptxas', '-O3',
|
||||
'-use_fast_math',
|
||||
'-ftz=true',
|
||||
'-prec-div=false',
|
||||
@@ -39,9 +38,9 @@ add_project_arguments(common_cpp_flags, language: 'cpp')
|
||||
add_project_arguments(common_cuda_flags, language: 'cuda')
|
||||
|
||||
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'
|
||||
add_project_arguments(['-DDEBUG', '-g', '-O0', '-DAVX2'], language: ['cpp', 'cuda'])
|
||||
add_project_arguments(['-DDEBUG'], language: ['cpp', 'cuda'])
|
||||
endif
|
||||
|
||||
cpp_sources = ['sources/main.cpp'] + files(run_command('find', 'libs', '-name','*.h').stdout().split())
|
||||
@@ -50,6 +49,7 @@ cuda_sources = ['sources/main.cu'] + files(run_command('find', 'libs', '-name',
|
||||
executable(
|
||||
'yggmcu',
|
||||
sources: cuda_sources,
|
||||
link_args: ['-lcudart', '-L/usr/local/cuda/lib64'],
|
||||
)
|
||||
|
||||
executable(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[binaries]
|
||||
cpp = 'clang++'
|
||||
cuda = 'nvcc'
|
||||
cuda_host_compiler = 'gcc-14'
|
||||
cuda = '/opt/cuda/bin/nvcc'
|
||||
cuda_host_compiler = '/opt/cuda/bin/nvcc'
|
||||
Reference in New Issue
Block a user