Closed borg323 closed 1 year ago
Compiling this using Windows, I received the following error message:
meson.build:507:26: ERROR: The ==
operator of str does not accept objects of type list ([])
meson-log.txt
@whelanh can you try the following fix?
--- a/meson.build
+++ b/meson.build
@@ -484,7 +484,7 @@ if get_option('build_backends')
if cuda_cc != ''
nvcc_extra_args = ['-arch=compute_' + cuda_cc, '-code=sm_' + cuda_cc]
elif get_option('native_cuda') and nvcc_help.contains('-arch=native')
- nvcc_extra_args = '-arch=native'
+ nvcc_extra_args = ['-arch=native']
endif
foreach x : get_option('cudnn_include')
cuda_arguments += ['-I', x]
I did try that correction of line 487 changing to:
nvcc_extra_args = ['-arch=native']
and it compiles fine without any errors. Kind regards, Hugh Whelan
On Sat, Jul 29, 2023 at 9:06 PM borg323 @.***> wrote:
@whelanh https://github.com/whelanh can you try the following fix?
--- a/meson.build+++ b/meson.build@@ -484,7 +484,7 @@ if get_option('build_backends') if cuda_cc != '' nvcc_extraargs = ['-arch=compute' + cudacc, '-code=sm' + cuda_cc] elif get_option('native_cuda') and nvcc_help.contains('-arch=native')- nvcc_extra_args = '-arch=native'+ nvcc_extra_args = ['-arch=native'] endif foreach x : get_option('cudnn_include') cuda_arguments += ['-I', x]
— Reply to this email directly, view it on GitHub https://github.com/LeelaChessZero/lc0/pull/1905#issuecomment-1656987009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2JOXNGHNQK37SLHRCHT43XSWXRDANCNFSM6AAAAAA222AELE . You are receiving this because you were mentioned.Message ID: @.***>
This pull request consists of 3 related parts:
-arch=native
for cuda code (if nvcc supports it). This is used by default unless-Dnative_cuda=false
is passed to the build or code generation for a specific CC is requested with e.g.-Dcc_cuda=50
.-arch=native
work even on older gpus.-Dnative_cuda=false
to appveyor builds in order to generate code for multiple gpu architectures.