diff --git a/.clangd b/.clangd index 2ead820..4db7fd6 100644 --- a/.clangd +++ b/.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'] \ No newline at end of file + Remove: ['-Xcompiler=-Wall,-Winvalid-pch','-rdc=true','-prec-div=false','-Xptxas','-ftz=true','-prec-sqrt=false','-gencode','--default-stream','--expt-relaxed-constexpr','-G'] \ No newline at end of file diff --git a/meson.build b/meson.build index 53264db..f390059 100644 --- a/meson.build +++ b/meson.build @@ -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,10 +49,11 @@ 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( 'yggmc', sources: cpp_sources, dependencies: dependency('libsodium'), -) \ No newline at end of file +) diff --git a/native.ini b/native.ini index b20af77..de5ab37 100644 --- a/native.ini +++ b/native.ini @@ -1,4 +1,4 @@ [binaries] cpp = 'clang++' -cuda = 'nvcc' -cuda_host_compiler = 'gcc-14' \ No newline at end of file +cuda = '/opt/cuda/bin/nvcc' +cuda_host_compiler = '/opt/cuda/bin/nvcc' \ No newline at end of file