GNU gdb (GDB) 9.1 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./katago... (gdb) run benchmark -model /home/xy/go/katagonets/g170e-b10c128-s1141046784-d204142634.bin.gz -visits 100 -boardsize 9 -config /home/xy/repos/KataGo/cpp/configs/gtp_9x9t.cfg Starting program: /home/xy/repos/KataGo/cpp/katago benchmark -model /home/xy/go/katagonets/g170e-b10c128-s1141046784-d204142634.bin.gz -visits 100 -boardsize 9 -config /home/xy/repos/KataGo/cpp/configs/gtp_9x9t.cfg [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". 2020-03-31 13:15:45+0200: Loading model and initializing benchmark... 2020-03-31 13:15:45+0200: nnRandSeed0 = 382478778031894301 2020-03-31 13:15:45+0200: After dedups: nnModelFile0 = /home/xy/go/katagonets/g170e-b10c128-s1141046784-d204142634.bin.gz useFP16 auto useNHWC auto [New Thread 0x7fffed0fb700 (LWP 1923)] [New Thread 0x7fffe7fff700 (LWP 1924)] [New Thread 0x7fffe77fe700 (LWP 1925)] [New Thread 0x7fffe6ffd700 (LWP 1926)] [New Thread 0x7fffe67fc700 (LWP 1927)] [New Thread 0x7fffe5ffb700 (LWP 1928)] [New Thread 0x7fffe57fa700 (LWP 1929)] [New Thread 0x7fffe4ff9700 (LWP 1930)] [New Thread 0x7fffc7fff700 (LWP 1931)] [New Thread 0x7fffc77fe700 (LWP 1932)] [New Thread 0x7fffc6ffd700 (LWP 1933)] [New Thread 0x7fffc67fc700 (LWP 1934)] [New Thread 0x7fffc5ffb700 (LWP 1935)] [New Thread 0x7fffc57fa700 (LWP 1936)] [New Thread 0x7fffc4ff9700 (LWP 1937)] [New Thread 0x7fffa7fff700 (LWP 1938)] [New Thread 0x7fffa77fe700 (LWP 1939)] [New Thread 0x7fffa6ffd700 (LWP 1940)] [New Thread 0x7fffa67fc700 (LWP 1941)] [New Thread 0x7fffa5ffb700 (LWP 1942)] [New Thread 0x7fffa57fa700 (LWP 1943)] [New Thread 0x7fffa4ff9700 (LWP 1944)] [New Thread 0x7fff87fff700 (LWP 1945)] [New Thread 0x7fff877fe700 (LWP 1946)] [New Thread 0x7fff86ffd700 (LWP 1947)] [New Thread 0x7fff867fc700 (LWP 1948)] [New Thread 0x7fff85ffb700 (LWP 1949)] [New Thread 0x7fff857fa700 (LWP 1950)] [New Thread 0x7fff84ff9700 (LWP 1951)] [New Thread 0x7fff67fff700 (LWP 1952)] [New Thread 0x7fff677fe700 (LWP 1953)] [New Thread 0x7fff66ffd700 (LWP 1954)] [New Thread 0x7fff667fc700 (LWP 1955)] [New Thread 0x7fff65ffb700 (LWP 1956)] [New Thread 0x7fff657fa700 (LWP 1957)] [New Thread 0x7fff64ff9700 (LWP 1958)] [New Thread 0x7fff47fff700 (LWP 1959)] [New Thread 0x7fff477fe700 (LWP 1960)] [New Thread 0x7fff46ffd700 (LWP 1961)] [New Thread 0x7fff467fc700 (LWP 1962)] [New Thread 0x7fff45ffb700 (LWP 1963)] [New Thread 0x7fff457fa700 (LWP 1964)] [New Thread 0x7fff44ff9700 (LWP 1965)] [New Thread 0x7fff27fff700 (LWP 1966)] [New Thread 0x7fff1ffff700 (LWP 1967)] [New Thread 0x7fff277fe700 (LWP 1968)] [New Thread 0x7fff26ffd700 (LWP 1969)] [New Thread 0x7fff267fc700 (LWP 1970)] [New Thread 0x7fff25ffb700 (LWP 1971)] [New Thread 0x7fff257fa700 (LWP 1972)] [New Thread 0x7fff24ff9700 (LWP 1973)] [New Thread 0x7fff1f7fe700 (LWP 1974)] [New Thread 0x7fff1effd700 (LWP 1975)] [New Thread 0x7fff1e7fc700 (LWP 1976)] [Thread 0x7fff1e7fc700 (LWP 1976) exited] [Thread 0x7fff1effd700 (LWP 1975) exited] [Thread 0x7fff1f7fe700 (LWP 1974) exited] [Thread 0x7fff24ff9700 (LWP 1973) exited] [Thread 0x7fff257fa700 (LWP 1972) exited] [Thread 0x7fff25ffb700 (LWP 1971) exited] [Thread 0x7fff267fc700 (LWP 1970) exited] [Thread 0x7fff26ffd700 (LWP 1969) exited] [Thread 0x7fff277fe700 (LWP 1968) exited] [Thread 0x7fff1ffff700 (LWP 1967) exited] [Thread 0x7fff27fff700 (LWP 1966) exited] [Thread 0x7fff44ff9700 (LWP 1965) exited] [Thread 0x7fff457fa700 (LWP 1964) exited] [Thread 0x7fff45ffb700 (LWP 1963) exited] [Thread 0x7fff467fc700 (LWP 1962) exited] [Thread 0x7fff46ffd700 (LWP 1961) exited] [Thread 0x7fff87fff700 (LWP 1945) exited] [Thread 0x7fff877fe700 (LWP 1946) exited] [Thread 0x7fff84ff9700 (LWP 1951) exited] [Thread 0x7fff667fc700 (LWP 1955) exited] [Thread 0x7fff66ffd700 (LWP 1954) exited] [Thread 0x7fff67fff700 (LWP 1952) exited] [Thread 0x7fff47fff700 (LWP 1959) exited] [Thread 0x7fff477fe700 (LWP 1960) exited] [Thread 0x7fff64ff9700 (LWP 1958) exited] [Thread 0x7fff65ffb700 (LWP 1956) exited] [Thread 0x7fff677fe700 (LWP 1953) exited] [Thread 0x7fff857fa700 (LWP 1950) exited] [Thread 0x7fff657fa700 (LWP 1957) exited] [Thread 0x7fff85ffb700 (LWP 1949) exited] [Thread 0x7fff867fc700 (LWP 1948) exited] [Thread 0x7fff86ffd700 (LWP 1947) exited] 2020-03-31 13:15:46+0200: Found OpenCL Platform 0: Clover (Mesa) (OpenCL 1.1 Mesa 20.0.2) 2020-03-31 13:15:46+0200: Found 1 device(s) on platform 0 with type CPU or GPU or Accelerator 2020-03-31 13:15:46+0200: Found OpenCL Device 0: Radeon RX 580 Series (POLARIS10, DRM 3.36.0, 5.5.13-arch2-1, LLVM 9.0.1) (AMD) (score 11000101) 2020-03-31 13:15:46+0200: Using OpenCL Device 0: Radeon RX 580 Series (POLARIS10, DRM 3.36.0, 5.5.13-arch2-1, LLVM 9.0.1) (AMD) OpenCL 1.1 Mesa 20.0.2 2020-03-31 13:15:46+0200: Loaded tuning parameters from: /home/xy/.katago/opencltuning/tune6_gpuRadeonRX580SeriesPOLARIS10DRM33605513arch21LLVM901_x9_y9_c128_mv8.txt [New Thread 0x7fff477fe700 (LWP 1977)] 2020-03-31 13:15:54+0200: OpenCL backend: Model version 8 2020-03-31 13:15:54+0200: OpenCL backend: Model name: g170-b10c128-s1141046784-d204142634 [New Thread 0x7fff47fff700 (LWP 1978)] [Thread 0x7fff47fff700 (LWP 1978) exited] 2020-03-31 13:15:55+0200: Loaded config /home/xy/repos/KataGo/cpp/configs/gtp_9x9t.cfg 2020-03-31 13:15:55+0200: Loaded model /home/xy/go/katagonets/g170e-b10c128-s1141046784-d204142634.bin.gz Testing using 100 visits. You are currently using the OpenCL version of KataGo. If you have a strong GPU capable of FP16 tensor cores (e.g. RTX2080), using the Cuda version of KataGo instead may give a large performance boost. Your GTP config is currently set to use numSearchThreads = 8 Testing different numbers of threads: numSearchThreads = 1: 10 / 10 positions, visits/s = 214.62 nnEvals/s = 209.90 nnBatches/s = 209.90 avgBatchSize = 1.00 (4.7 secs) (EloDiff baseline) numSearchThreads = 2: 0 / 10 positions, visits/s = -nan (0.0 secs) [New Thread 0x7fff47fff700 (LWP 1979)] numSearchThreads = 2: 1 / 10 positions, visits/s = 195.67 (0.5 secs) [Thread 0x7fff47fff700 (LWP 1979) exited] [New Thread 0x7fff47fff700 (LWP 1980)] numSearchThreads = 2: 2 / 10 positions, visits/s = 229.97 (0.9 secs) [Thread 0x7fff47fff700 (LWP 1980) exited] [New Thread 0x7fff47fff700 (LWP 1981)] [Thread 0x7fff47fff700 (LWP 1981) exited] numSearchThreads = 2: 3 / 10 positions, visits/s = 218.14 (1.4 secs) [New Thread 0x7fff47fff700 (LWP 1982)] numSearchThreads = 2: 4 / 10 positions, visits/s = 213.41 (1.9 secs) [Thread 0x7fff47fff700 (LWP 1982) exited] [New Thread 0x7fff47fff700 (LWP 1983)] numSearchThreads = 2: 5 / 10 positions, visits/s = 223.66 (2.3 secs) [Thread 0x7fff47fff700 (LWP 1983) exited] [New Thread 0x7fff47fff700 (LWP 1984)] [Thread 0x7fff47fff700 (LWP 1984) exited] numSearchThreads = 2: 6 / 10 positions, visits/s = 220.39 (2.7 secs) [New Thread 0x7fff47fff700 (LWP 1985)] numSearchThreads = 2: 7 / 10 positions, visits/s = 216.71 (3.3 secs) [Thread 0x7fff47fff700 (LWP 1985) exited] [New Thread 0x7fff47fff700 (LWP 1986)] numSearchThreads = 2: 8 / 10 positions, visits/s = 217.38 (3.7 secs) [Thread 0x7fff47fff700 (LWP 1986) exited] [New Thread 0x7fff47fff700 (LWP 1987)] [Thread 0x7fff47fff700 (LWP 1987) exited] numSearchThreads = 2: 9 / 10 positions, visits/s = 224.60 (4.0 secs) [New Thread 0x7fff47fff700 (LWP 1988)] numSearchThreads = 2: 10 / 10 positions, visits/s = 225.31 nnEvals/s = 216.83 nnBatches/s = 216.61 avgBatchSize = 1.00 (4.5 secs) (EloDiff +12) [Thread 0x7fff47fff700 (LWP 1988) exited] numSearchThreads = 4: 0 / 10 positions, visits/s = -nan (0.0 secs) [New Thread 0x7fff47fff700 (LWP 1989)] [New Thread 0x7fff64ff9700 (LWP 1990)] [New Thread 0x7fff657fa700 (LWP 1991)] [Thread 0x7fff657fa700 (LWP 1991) exited] [Thread 0x7fff47fff700 (LWP 1989) exited] [Thread 0x7fff64ff9700 (LWP 1990) exited] numSearchThreads = 4: 1 / 10 positions, visits/s = 396.80 (0.3 secs) [New Thread 0x7fff657fa700 (LWP 1992)] [New Thread 0x7fff64ff9700 (LWP 1993)] [New Thread 0x7fff47fff700 (LWP 1994)] [Thread 0x7fff47fff700 (LWP 1994) exited] [Thread 0x7fff657fa700 (LWP 1992) exited] [Thread 0x7fff64ff9700 (LWP 1993) exited] numSearchThreads = 4: 2 / 10 positions, visits/s = 450.71 (0.5 secs) [New Thread 0x7fff47fff700 (LWP 1995)] [New Thread 0x7fff64ff9700 (LWP 1996)] [New Thread 0x7fff657fa700 (LWP 1997)] [Thread 0x7fff64ff9700 (LWP 1996) exited] [Thread 0x7fff47fff700 (LWP 1995) exited] [Thread 0x7fff657fa700 (LWP 1997) exited] numSearchThreads = 4: 3 / 10 positions, visits/s = 474.02 (0.7 secs) [New Thread 0x7fff657fa700 (LWP 1998)] [New Thread 0x7fff64ff9700 (LWP 1999)] [New Thread 0x7fff47fff700 (LWP 2000)] [Thread 0x7fff64ff9700 (LWP 1999) exited] [Thread 0x7fff657fa700 (LWP 1998) exited] [Thread 0x7fff47fff700 (LWP 2000) exited] numSearchThreads = 4: 4 / 10 positions, visits/s = 486.23 (0.8 secs) [New Thread 0x7fff47fff700 (LWP 2001)] [New Thread 0x7fff64ff9700 (LWP 2002)] [New Thread 0x7fff657fa700 (LWP 2003)] [Thread 0x7fff64ff9700 (LWP 2002) exited] [Thread 0x7fff47fff700 (LWP 2001) exited] [Thread 0x7fff657fa700 (LWP 2003) exited] numSearchThreads = 4: 5 / 10 positions, visits/s = 494.73 (1.0 secs) [New Thread 0x7fff657fa700 (LWP 2004)] [New Thread 0x7fff64ff9700 (LWP 2005)] [New Thread 0x7fff47fff700 (LWP 2006)] [Thread 0x7fff64ff9700 (LWP 2005) exited] [Thread 0x7fff657fa700 (LWP 2004) exited] [Thread 0x7fff47fff700 (LWP 2006) exited] numSearchThreads = 4: 6 / 10 positions, visits/s = 500.17 (1.2 secs) [New Thread 0x7fff47fff700 (LWP 2007)] [New Thread 0x7fff64ff9700 (LWP 2008)] [New Thread 0x7fff657fa700 (LWP 2009)] [Thread 0x7fff64ff9700 (LWP 2008) exited] [Thread 0x7fff47fff700 (LWP 2007) exited] [Thread 0x7fff657fa700 (LWP 2009) exited] numSearchThreads = 4: 7 / 10 positions, visits/s = 504.16 (1.4 secs) [New Thread 0x7fff657fa700 (LWP 2010)] [New Thread 0x7fff64ff9700 (LWP 2011)] [New Thread 0x7fff47fff700 (LWP 2012)] [Thread 0x7fff64ff9700 (LWP 2011) exited] [Thread 0x7fff657fa700 (LWP 2010) exited] [Thread 0x7fff47fff700 (LWP 2012) exited] numSearchThreads = 4: 8 / 10 positions, visits/s = 507.35 (1.6 secs) [New Thread 0x7fff47fff700 (LWP 2013)] [New Thread 0x7fff64ff9700 (LWP 2014)] [New Thread 0x7fff657fa700 (LWP 2015)] [Thread 0x7fff47fff700 (LWP 2013) exited] numSearchThreads = 4: 9 / 10 positions, visits/s = 496.44 (1.9 secs) [Thread 0x7fff657fa700 (LWP 2015) exited] [Thread 0x7fff64ff9700 (LWP 2014) exited] [New Thread 0x7fff657fa700 (LWP 2016)] [New Thread 0x7fff64ff9700 (LWP 2017)] [New Thread 0x7fff47fff700 (LWP 2018)] [Thread 0x7fff47fff700 (LWP 2018) exited] [Thread 0x7fff64ff9700 (LWP 2017) exited] [Thread 0x7fff657fa700 (LWP 2016) exited] numSearchThreads = 4: 10 / 10 positions, visits/s = 482.85 nnEvals/s = 480.04 nnBatches/s = 246.58 avgBatchSize = 1.95 (2.1 secs) (EloDiff +283) numSearchThreads = 6: 0 / 10 positions, visits/s = -nan (0.0 secs) [New Thread 0x7fff47fff700 (LWP 2019)] [New Thread 0x7fff64ff9700 (LWP 2020)] [New Thread 0x7fff657fa700 (LWP 2021)] [New Thread 0x7fff86adf700 (LWP 2022)] [New Thread 0x7fff862de700 (LWP 2023)] --Type for more, q to quit, c to continue without paging-- Thread 56 "katago" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff477fe700 (LWP 1977)] 0x00007fffed88ec1d in ?? () from /usr/lib/gallium-pipe/pipe_radeonsi.so (gdb) bt #0 0x00007fffed88ec1d in ?? () from /usr/lib/gallium-pipe/pipe_radeonsi.so #1 0x00007fffed88f4c3 in ?? () from /usr/lib/gallium-pipe/pipe_radeonsi.so #2 0x00007fffed885cba in ?? () from /usr/lib/gallium-pipe/pipe_radeonsi.so #3 0x00007ffff6ba3303 in ?? () from /usr/lib/libMesaOpenCL.so.1 #4 0x00007ffff6b95ca3 in ?? () from /usr/lib/libMesaOpenCL.so.1 #5 0x00007ffff6b96421 in ?? () from /usr/lib/libMesaOpenCL.so.1 #6 0x00007ffff6b93235 in ?? () from /usr/lib/libMesaOpenCL.so.1 #7 0x00007ffff6b913f2 in ?? () from /usr/lib/libMesaOpenCL.so.1 #8 0x00007ffff7f72b7e in clEnqueueCopyBuffer () from /usr/lib/libOpenCL.so.1 #9 0x000055555560f731 in applySymmetriesNCHW (handle=0x7fff4802f1f0, symmetriesBuffer=0x7fff4802b000, inverse=, batchSize=5, cSize=22, nnXLen=, nnYLen=9, input=0x7fff48056f10, inputScratch=0x7fff48057250) at /home/xy/repos/KataGo/cpp/neuralnet/openclbackend.cpp:605 #10 0x000055555561739e in Model::apply (this=0x7fff480342a0, handle=handle@entry=0x7fff4802f1f0, batchSize=, batchSize@entry=5, symmetriesBuffer=0x7fff4802b000, input=, inputScratch=, inputGlobal=0x7fff48057590, mask=, maskSum=0x7fff48057c10, trunkBuf=0x7fff48057f50, trunkScratch=0x7fff48058290, mid=0x7fff48070090, midScratch=0x7fff480703d0, gpoolOut=0x7fff48070710, gpoolOut2=0x7fff48070a50, gpoolConcat=0x7fff48070d90, gpoolBias=0x7fff480710d0, p1Out=0x7fff48071410, p1Out2=0x7fff48071750, p2Out=0x7fff48071a90, policyPass=0x7fff48071dd0, policy=0x7fff48072110, v1Out=0x7fff48072450, v1Out2=0x7fff48072790, v1Mean=0x7fff48072ad0, v2Out=0x7fff48072e10, value=0x7fff48073150, scoreValue=0x7fff48073490, ownership=0x7fff480737d0, ownershipScratch=0x7fff48073b10, convWorkspace=0x7fff48077ea0, convWorkspace2=0x7fff480781e0) at /home/xy/repos/KataGo/cpp/neuralnet/openclbackend.cpp:2047 #11 0x0000555555610927 in NeuralNet::getOutput (gpuHandle=0x7fff4802f130, inputBuffers=0x7fff48000b80, numBatchEltsFilled=5, outputs=std::vector of length 5, capacity 8 = {...}) at /home/xy/repos/KataGo/cpp/neuralnet/openclbackend.cpp:2532 #12 0x0000555555600085 in NNEvaluator::serve (this=0x555555842490, buf=..., rand=..., gpuIdxForThisThread=) at /home/xy/repos/KataGo/cpp/neuralnet/nneval.cpp:456 #13 0x0000555555600be9 in serveEvals (randSeedThisThread="382478778031894301:NNEvalServerThread:0", nnEval=0x555555842490, loadedModel=, gpuIdxForThisThread=-1) at /home/xy/repos/KataGo/cpp/neuralnet/nneval.cpp:270 #14 0x00005555556034fa in std::__invoke_impl, std::allocator >, NNEvaluator*, LoadedModel const*, int), std::__cxx11::basic_string, std::allocator >, NNEvaluator*, LoadedModel*, int> (__f=) at /usr/include/c++/9.3.0/bits/char_traits.h:300 #15 std::__invoke, std::allocator >, NNEvaluator*, LoadedModel const*, int), std::__cxx11::basic_string, std::allocator >, NNEvaluator*, LoadedModel*, int> (__fn=) at /usr/include/c++/9.3.0/bits/invoke.h:95 #16 std::thread::_Invoker, std::allocator >, NNEvaluator*, LoadedModel const*, int), std::__cxx11::basic_string, std::allocator >, NNEvaluator*, LoadedModel*, int> >::_M_invoke<0ul, 1ul, 2ul, 3ul, 4ul> (this=) at /usr/include/c++/9.3.0/thread:244 #17 std::thread::_Invoker, std::allocator >, NNEvaluator*, LoadedModel const*, int), std::__cxx11::basic_string, std::allocator >, NNEvaluator*, LoadedModel*, int> >::operator() (this=) at /usr/include/c++/9.3.0/thread:251 #18 std::thread::_State_impl, std::allocator >, NNEvaluator*, LoadedModel const*, int), std::__cxx11::basic_string, std::allocator >, NNEvaluator*, LoadedModel*, int> > >::_M_run (this=) at /usr/include/c++/9.3.0/thread:195 #19 0x00007ffff7dcfb24 in std::execute_native_thread_routine (__p=0x555556ab7be0) at /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:80 #20 0x00007ffff7ef446f in start_thread () from /usr/lib/libpthread.so.0 #21 0x00007ffff7ad93d3 in clone () from /usr/lib/libc.so.6 (gdb) quit A debugging session is active. Inferior 1 [process 1919] will be killed. Quit anyway? (y or n) y