僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。
ソフトの名前など覚えてもおらず、ソースから ビルドしたはず、といった記憶を辿って ソースディレクトリの置き場を見回して ようやく。
今回は
本来読むべきものを少し読み直し、nvidia-cuda-toolkit
などを突っ込んで、再度ビルドしてみた。
git pullとかもやって、make installも。
$ lspci | grep NVIDIA 01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)
$ waifu2x-converter-cpp -l 0: NVIDIA GeForce MX250 (CUDA ): num_core=3 1: NVIDIA GeForce MX250 (NVIDIA-GPU): num_core=3 2: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (FMA ): num_core=8
前回と同じテストを、もう一度。
$ time waifu2x-converter-cpp --scale-ratio 4 \ > -m scale -p 1 -i 20140529_01.png -o 4x.png Writing OpenCL-Binary to: $DIR/.waifu2x/NVIDIA_GeForce_MX250.bin OpenCL: NVIDIA GeForce MX250 Processing file [1/1] "$DIR/junk/20140529_01.png": Scaling image from 256x144 to 1024x576 Step 01/02: 2x Scaling Proccessing [1/1] slices 2x Scaling: Processing block, column (01/02), row (01/01) ... total : 0.205[sec], 0436.68[GFLOPS] Processing block, column (02/02), row (01/01) ... total : 0.020[sec], 0246.44[GFLOPS] Step 02/02: 2x Scaling Proccessing [1/1] slices 2x Scaling: Processing block, column (01/03), row (01/02) ... total : 0.324[sec], 0469.95[GFLOPS] Processing block, column (02/03), row (01/02) ... total : 0.330[sec], 0461.31[GFLOPS] Processing block, column (03/03), row (01/02) ... total : 0.034[sec], 0368.32[GFLOPS] Processing block, column (01/03), row (02/02) ... total : 0.067[sec], 0408.59[GFLOPS] Processing block, column (02/03), row (02/02) ... total : 0.065[sec], 0419.99[GFLOPS] Processing block, column (03/03), row (02/02) ... total : 0.009[sec], 0257.81[GFLOPS] Writing image to file... Done, took: 2.888s total, ETA: 0.000s, file: 1.249s avg: 2.888s Finished processing 1 files Took: 2.888s total, filter: 1.053s; 0 files skipped, 0 files errored. [GFLOPS: 162.07, GFLOPS-Filter: 1.05] real 0m3.084s user 0m2.952s sys 0m0.133s
同じ機器で、二倍くらいのスピードになったことは、分かった。
sidに入っていた。いつ入れたのか覚えていない。さっき
どれかに混ざって入ったかもしれない。
適当にwaifu2x-converter-cppを走らせているさなかに実行。
$ nvidia-smi Wed Nov 3 10:34:32 2021 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.74 Driver Version: 470.74 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A | | N/A 36C P0 N/A / N/A | 293MiB / 2002MiB | 99% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 799 G /usr/lib/xorg/Xorg 4MiB | | 0 N/A N/A 19075 C waifu2x-converter-cpp 287MiB | +-----------------------------------------------------------------------------+
まだまだ、使用状況は微々たるもの、ということか。
リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。