{"id":2457,"date":"2017-10-11T20:53:13","date_gmt":"2017-10-11T11:53:13","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=2457"},"modified":"2017-10-23T19:54:21","modified_gmt":"2017-10-23T10:54:21","slug":"cupy%e3%81%a72%e6%ac%a1%e5%85%83%e3%82%ac%e3%82%a6%e3%82%b9%e9%96%a2%e6%95%b0%e3%82%92%e7%94%9f%e6%88%90%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=2457","title":{"rendered":"cupy\u30672\u6b21\u5143\u30ac\u30a6\u30b9\u7a93\u3092\u751f\u6210\u3059\u308b"},"content":{"rendered":"<p>8000\u30e1\u30fc\u30c8\u30eb\u306a\u3069\u3092\u8d85\u3048\u308b\u3088\u3046\u306a\u8d85\u6df1\u6d77\u3067\u306f\u3001\u8d85\u9ad8\u5727\u306e\u305f\u3081\u30bf\u30f3\u30d1\u30af\u8cea\u306e\u69cb\u9020\u81ea\u4f53\u304c\u4fdd\u3066\u306a\u304f\u306a\u308b\uff08\u6c34\u5206\u5b50\u304c\u4fb5\u5165\u3057\u7834\u58ca\u3055\u308c\u308b\uff09\u3053\u3068\u304b\u3089\u3001\u901a\u5e38\u306e\u69cb\u9020\u306e\u5ef6\u9577\u3068\u3057\u3066\u306e\u751f\u7269\u306f\u751f\u606f\u3067\u304d\u306a\u3044\u306e\u3060\u305d\u3046\u3067\u3059\u3002\u305d\u3053\u306b\u3044\u308b\u751f\u7269\u306f\u3001TMAO\u3068\u3044\u3046\u7269\u8cea\u304c\u3082\u3064\u30bf\u30f3\u30d1\u30af\u8cea\u306b\u4fb5\u5165\u3059\u308b\u6c34\u5206\u5b50\u3092\u30d6\u30ed\u30c3\u30af\u3059\u308b\u6027\u8cea\u3092\u5229\u7528\u3057\u3066\u751f\u304d\u3066\u3044\u308b\u306e\u3060\u3068\u304b\u3002\u3057\u305f\u305f\u304b\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001Python\u3092\u4f7f\u3063\u30662\u6b21\u5143\u306e\u30ac\u30a6\u30b9\u7a93\u3092\u751f\u6210\u3057\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n1\u6b21\u5143\u3067\u306e[https:\/\/docs.scipy.org\/doc\/scipy-0.14.0\/reference\/generated\/scipy.signal.gaussian.html:title=scipy.signal.gaussian]\u306e\u591a\u6b21\u5143\u7248\u306b\u3042\u305f\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u753b\u50cf\u3068\u3057\u3066\u63cf\u753b\u3059\u308b\u3068\u3053\u3093\u306a\u304b\u3093\u3058\u306b\u306a\u308b\u3088\u3046\u306a\u914d\u5217\u306e\u751f\u6210\u304c\u76ee\u7684\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/daily.belltail.jp\/?attachment_id=2459\" rel=\"attachment wp-att-2459\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2459\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/2d_gaussian_cupy.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/2d_gaussian_cupy.png 300w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/2d_gaussian_cupy-150x150.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>** Numpy\u82b8<\/p>\n<p>\u307e\u305aNumpy\u82b8\u3067\u3042\u308c\u3070\u3044\u304f\u3064\u304b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3093\u306a\u304b\u3093\u3058\u3067\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u7c21\u5358\u306e\u305f\u30812\u6b21\u5143\u914d\u5217\u306e\u4e2d\u592e\u304c\u6700\u5927\u50241\u3092\u3068\u308b\u3088\u3046\u306a\u30ac\u30a6\u30b9\u95a2\u6570\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/belltailjp\/f33f3bafb70865ec13fc314a632a4928.js?file=gen_2d_gaussian_numpy.py\"><\/script><\/p>\n<p>1\u6b21\u5143\u306e\u30ac\u30a6\u30b9\u306e\u914d\u5217\u306e\u76f4\u7a4d\u3092\u3068\u3063\u30662\u6b21\u5143\u306b\u3059\u308b\u3068\u3044\u3046\u96f0\u56f2\u6c17\u3067\u3059\u3002size\u306f\u4f5c\u308a\u305f\u3044\u914d\u5217\u306e\u30b5\u30a4\u30ba\u3001sigma\u306f\u30ac\u30a6\u30b9\u306e\u6a19\u6e96\u504f\u5dee\u3002<\/p>\n<p>\u203b\u3053\u306eNumpy\u82b8\u306e\u4e00\u90e8\u306f[https:\/\/twitter.com\/omeometo:title=omeometo]\u3055\u3093\u306e\u30a2\u30c9\u30d0\u30a4\u30b9\u306b\u3088\u308b\u3082\u306e\u3067\u3059\uff01\u591a\u8b1d\uff01<\/p>\n<p>** Numpy\u82b8\u306e\u5fdc\u7528\u3068\u3057\u3066\u306eCupy\u82b8<\/p>\n<p>\u81ea\u5206\u306f\u30c7\u30fc\u30bf\u306fGPU\u4e0a\u306b\u6b32\u3057\u304b\u3063\u305f\u306e\u3067\u3001Numpy\u4e92\u63db\u306eGPU\u30c6\u30f3\u30bd\u30eb\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308b[https:\/\/docs-cupy.chainer.org\/en\/stable\/overview.html:title=Cupy]\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u5834\u5408\u3082\u57fa\u672c\u7684\u306a\u8003\u3048\u65b9\u306f\u540c\u3058\u3067\u3055\u304f\u3063\u3068\u3067\u304d\u307e\u3059\u3002<br \/>\nscipy.signal.gaussian\u306b\u3042\u305f\u308b\u3082\u306e\u304c\u7121\u3044\u305f\u3081\u3001\u3053\u308c\u3092\u624b\u4f5c\u696d\u3067\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u5927\u3057\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/belltailjp\/f33f3bafb70865ec13fc314a632a4928.js?file=gen_2d_gaussian_cupy.py\"><\/script><\/p>\n<p>** ElementwiseKernel\u3067\u306e\u30d9\u30bf\u5b9f\u88c5<\/p>\n<p>\u4e0a2\u3064\u306fnumpy\u82b8\u3068\u305d\u306ecupy\u3078\u306e\u5fdc\u7528\u3067\u3059\u304c\u3001\u611a\u76f4\u306b\u30eb\u30fc\u30d7\u3092\u66f8\u3044\u3066\u5404\u5ea7\u6a19\u3054\u3068\u306b\u30ac\u30a6\u30b9\u95a2\u6570\u306e\u5024\u3092\u8a08\u7b97\u3059\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u306e\u5fdc\u7528\u7248\u3068\u3057\u3066\u3001Cupy\u306e[https:\/\/docs-cupy.chainer.org\/en\/stable\/reference\/generated\/cupy.ElementwiseKernel.html:title=ElementwiseKernel]\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3046\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/belltailjp\/f33f3bafb70865ec13fc314a632a4928.js?file=gen_2d_gaussian_cupy_elementwise.py\"><\/script><\/p>\n<p>ElementwiseKernel\u306fPython\u3067\u8a00\u3046\u3068\u3053\u308d\u306emap\u3068\u540c\u3058\u3067\u6dfb\u5b57\u306f\u30ab\u30fc\u30cd\u30eb\u672c\u4f53\u306b\u6e21\u3055\u308c\u306a\u3044\u306e\u3067\u3001array\u3068range\u3092zip\u3057\u3066map\u3059\u308b\u306e\u3068\u540c\u3058\u8003\u3048\u65b9\u3067\u3001\u5ea7\u6a19\u3092\u8868\u3059\u914d\u5217\u3092meshgrid\u3067\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u5206GPU\u4e0a\u306b\u30e1\u30e2\u30ea\u3092\u7121\u99c4(+2\u500d)\u306b\u98df\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6d88\u8cbb\u3059\u308bFLOP\u306e\u56de\u6570\u3082\u3001exp\u3084sqrt\u3092size*size\u306e\u5168\u8981\u7d20\u306b\u5bfe\u3057\u3066\u8a08\u7b97\u3059\u308b\u3053\u3068\u304b\u3089\u304b\u306a\u308a\u591a\u3081\u306b\u306a\u308a\u307e\u3059\u3002outer\u3092\u4f7f\u3046\u30a2\u30d7\u30ed\u30fc\u30c1\u3060\u3068\u3053\u306e\u3088\u3046\u306a\u91cd\u305f\u3044\u8a08\u7b97\u306f\u611a\u76f4\u306a\u5b9f\u88c5\u306e\u5e73\u65b9\u6839\u7a0b\u5ea6\u3057\u304b\u547c\u3070\u308c\u305a\u306b\u3059\u307f\u307e\u3059\u3002\u304c\u3001\u305d\u308c\u3067\u3082GPU\u306e\u4e26\u5217\u6027\u3068\u30b7\u30f3\u30d7\u30eb\u306a\u51e6\u7406\u306b\u3088\u308a\u3001\u5b9f\u6642\u9593\u3068\u3057\u3066\u306f\u305d\u308c\u306a\u308a\u306b\u901f\u3044\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>** \u30de\u30a4\u30af\u30ed\u30d9\u30f3\u30c1\u30de\u30fc\u30af<\/p>\n<p>[https:\/\/gist.github.com\/belltailjp\/f33f3bafb70865ec13fc314a632a4928#file-bench-py:title=\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9]\u3067\u3001\u751f\u6210\u3059\u308b2\u6b21\u5143\u30ac\u30a6\u30b9\u95a2\u6570\u306e\u914d\u5217\u306e\u30b5\u30a4\u30ba\u30928&#215;8\u304b\u308916384&#215;16384\u307e\u3067\u5909\u5316\u3055\u305b\u306a\u304c\u3089\u6642\u9593\u3092\u6e2c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u6a2a\u8ef8\u306f\u914d\u5217\u306e\u4e00\u8fba\u306e\u30b5\u30a4\u30ba\u3001\u7e26\u8ef8\u306f1\u56de\u3042\u305f\u308a\u306e\u751f\u6210\u6642\u9593\uff08\u30df\u30ea\u79d2\uff09\u3067\u3059\u3002<\/p>\n<p>1\u301c3\u9805\u76ee\u76ee\u306f\u4e0a\u3067\u8aac\u660e\u3057\u305f\u3068\u304a\u308a\u30014\u9805\u76ee\u76ee\u306f\uff08\u30c7\u30fc\u30bf\u306fGPU\u4e0a\u306b\u6b32\u3057\u3044\u306e\u3067\uff09numpy\u3067\u751f\u6210\u3057\u305f\u3042\u3068GPU\u306b\u9001\u308b\u51e6\u7406\u307e\u3067\u542b\u3093\u3060\u6642\u9593\u3067\u3059\u3002<br \/>\n\u74b0\u5883\u306fi7-7700K\/GeForce GTX 1080Ti\/Ubuntu16.04\/CUDA8.0\/Cupy1.0.3\/Numpy1.11.3\/Python3.6.0\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/daily.belltail.jp\/?attachment_id=2496\" rel=\"attachment wp-att-2496\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2496\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph.png\" alt=\"\" width=\"1654\" height=\"848\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph.png 1654w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph-300x154.png 300w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph-768x394.png 768w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph-1024x525.png 1024w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph-1200x615.png 1200w\" sizes=\"auto, (max-width: 1654px) 100vw, 1654px\" \/><\/a><\/p>\n<p>GPU\u304c\u7d61\u3080\u3068\u3069\u3046\u3057\u3066\u3082\u3042\u308b\u4e00\u5b9a\u4ee5\u4e0a\u901f\u304f\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u751f\u6210\u3057\u305f\u3044\u914d\u5217\u306e\u30b5\u30a4\u30ba\u306b\u3088\u3063\u3066\u6226\u7565\u3092\u5909\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3002<\/p>\n<p>\u81ea\u5206\u306e\u5834\u5408\u306f\u305b\u3044\u305c\u3044\u6570\u5341\u3068\u3044\u3046\u30b5\u30a4\u30ba\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u3067\u3001numpy\u3067\u4f5c\u3063\u3066GPU\u306b\u9001\u3063\u3066\u3057\u307e\u3046\u307b\u3046\u304c\u901f\u3044\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u4e00\u65b9\u3067\u3001Cupy\u306eElementWise\u5b9f\u88c5\uff08gen_2d_gaussian_cupy_elementwise\uff09\u306b\u304a\u3051\u308brng, x, y\u306f\u3001\u51fa\u529b\u30b5\u30a4\u30ba\u304c\u540c\u3058\u3067\u3042\u308c\u3070\u6bce\u56de\u4f5c\u308b\u5fc5\u8981\u306f\u306a\u304f\u5b8c\u5168\u306b\u4f7f\u3044\u307e\u308f\u305b\u308b\u306e\u3067\u3001\u305d\u306e\u65b9\u6cd5\u3067\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u3068\u308b\u3068\u30b3\u30f3\u30b9\u30bf\u30f3\u30c8\u306b\uff08\u751f\u6210\u3059\u308b\u914d\u5217\u306e\u30b5\u30a4\u30ba\u306b\u3088\u3089\u305a\uff093\u500d\u307b\u3069\u901f\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u5e38\u306bnumpy\u3067\u4f5c\u3063\u3066GPU\u306b\u9001\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3088\u308a\u3082\u901f\u3044\u3067\u3059\u3002\u30ac\u30a6\u30b9\u751f\u6210\u51e6\u7406\u3092\u8907\u6570\u56de\u547c\u3093\u3067\u6df7\u5408\u30ac\u30a6\u30b9\u307f\u305f\u3044\u306a\u3082\u306e\u3092\u4f5c\u308a\u305f\u3044\u3001\u306a\u3069\u306e\u5834\u5408\u306f\u3001\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u6700\u3082\u52b9\u7387\u7684\u3067\u3059\u3002<\/p>\n<p>\u540c\u3058\u3053\u3068\u306fcupy\u82b8\u306e\u5b9f\u88c5\uff08gen_2d_gaussian_cupy\uff09\u3067\u3082\u8a00\u3048\u3066\u3001arange\u3067\u751f\u6210\u3057\u3066\u3044\u308bx\u306f\u540c\u3058\u30b5\u30a4\u30ba\u306e\u51fa\u529b\u306b\u5bfe\u3057\u3066\u5e38\u306b\u6d41\u7528\u3067\u304d\u308b\u306e\u3067\u901f\u304f\u306a\u308b\u306e\u3067\u3059\u304c\u3001arange\u306b\u6bd4\u3079\u3066exp\u3055\u3089\u306b\u306fouter\u306f\u9065\u304b\u306b\u91cd\u305f\u3044\u306e\u3067\u3001\u305d\u308c\u307b\u3069\u306f\u901f\u304f\u306a\u308a\u307e\u305b\u3093\uff081\u5272\u4ee5\u4e0b\uff09\u3002<\/p>\n<p>\u67d4\u8edf\u6027\u3068\u3057\u3066\u306f\u3001\u4e0a\u8a18\u306e\u6df7\u5408\u30ac\u30a6\u30b9\u751f\u6210\u306a\u3069\u306b\u52a0\u3048\u3066\u3001\u4f8b\u3048\u3070\u659c\u3081\u306b\u5206\u5e03\u3059\u308b\u3088\u3046\u306agaussian\u3092\u63cf\u304d\u305f\u3044\u5834\u5408\u306fElementwiseKernel\u306e\u65b9\u6cd5\u3060\u3068\u4f55\u3082\u8003\u3048\u305a\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u62e1\u5f35\u3059\u308c\u3070\u3088\u3055\u305d\u3046\u3002Numpy\u82b8\u306e\u65b9\u6cd5\u3060\u3068\u3001\u307e\u305f\u5c11\u3057\u982d\u3092\u3072\u306d\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u305f\u3076\u3093\u3053\u306e\u8a18\u4e8b\u306b\u66f8\u3044\u305f\u65b9\u6cd5\u3088\u308a\u305a\u3063\u3068\u901f\u304f\u3066\u30a8\u30ec\u30ac\u30f3\u30c8\u306a\u65b9\u6cd5\u304cnumpy\/cupy\u3068\u3082\u5b58\u5728\u3059\u308b\u3053\u3068\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u305c\u3072\u30de\u30b5\u30ab\u30ea\u3092\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>** \u7d9a\u5831\uff1aCUDA\u30ab\u30fc\u30cd\u30eb\u3092\u624b\u3067\u66f8\u3044\u3066\u307f\u305f<\/p>\n<p>\u305d\u3082\u305d\u3082\u6700\u5927\u901f\u5ea6\u306f\u3069\u306e\u3050\u3089\u3044\u306b\u306a\u308b\u3093\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3001Python\u3092\u7d4c\u7531\u305b\u305a\u76f4\u63a5CUDA\u30ab\u30fc\u30cd\u30eb\u3092\u66f8\u3044\u305fC++\u30b3\u30fc\u30c9\u3067\u540c\u3058\u3053\u3068\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/belltailjp\/f33f3bafb70865ec13fc314a632a4928.js?file=gen_2d_gaussian.cu\"><\/script><\/p>\n<p>\u3053\u308c\u3092\u5408\u308f\u305b\u305f\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u7d50\u679c\u304c\u3053\u3061\u3089\u3002<br \/>\n\u751fCUDA\u7248\u3092\u66f8\u304f\u904e\u7a0b\u3067\u3001cudaFree\u304c\u30a2\u30db\u307b\u3069\u9045\u3044\u3053\u3068\u304c\u5224\u660e\u3057\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u6642\u9593\u8a08\u6e2c\u306e\u5916\u306b\u5410\u304d\u51fa\u3057\u305f\u7248\u3082\u6bd4\u8f03\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/daily.belltail.jp\/?attachment_id=2503\" rel=\"attachment wp-att-2503\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph_with_cuda.png\" alt=\"\" width=\"1800\" height=\"862\" class=\"aligncenter size-full wp-image-2503\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph_with_cuda.png 1800w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph_with_cuda-300x144.png 300w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph_with_cuda-768x368.png 768w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph_with_cuda-1024x490.png 1024w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2017\/10\/cupy_2d_gaussian_generation_graph_with_cuda-1200x575.png 1200w\" sizes=\"auto, (max-width: 1800px) 100vw, 1800px\" \/><\/a><\/p>\n<p>Cupy\u7d4c\u7531\u306a\u3069\u3088\u308a\u9059\u304b\u306b\u901f\u304f\u306a\u308b\u3053\u3068\u3001Python\u30aa\u30fc\u30d0\u30d8\u30c3\u30c9\u5206\u304c\u306a\u3044\u306e\u3067\u5f53\u7136\u306a\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u306b\u3057\u3066\u30821\u6841\u8fd1\u304f\u306e\u5dee\u3068\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u4f7f\u3063\u305fGTX1080Ti\u306f3584\u500b\u306eCUDA\u30b3\u30a2\u3067\u3059\u306e\u3067\u300116384&#215;16384\u306e\u5834\u5408\u306f\u5358\u7d14\u8a08\u7b97\u30671\u30b3\u30a2\u3042\u305f\u308a75000\u753b\u7d20\u3092\u62c5\u5f53\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b3\u30a2\u304c1.5GHz\u3067\u99c6\u52d5\u3057\u3001\u307e\u305fptx\u3067\u898b\u308b\u30681\u753b\u7d20\u306e\u8a08\u7b97\u306f\u6982\u306d60\u30b9\u30c6\u30c3\u30d7\u7a0b\u5ea6\u3060\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u30ea\u5f85\u3061\u306a\u3069\u306f\u7121\u8996\u3057\u3066\u5f37\u5f15\u306b1\u30af\u30ed\u30c3\u30af1\u30b9\u30c6\u30c3\u30d7\u3067\u8a08\u7b97\u3059\u308b\u3068\u3060\u3044\u305f\u30442.5ms\u3067\u5168\u90e8\u7d42\u308f\u308b\u3053\u3068\u306b\u306a\u308b\u8a08\u7b97\u3067\u3059\u3002\u5b9f\u969b\u306e\u6570\u5b57\u304c4ms\u7a0b\u5ea6\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u59a5\u5f53\u306a\u7d50\u679c\u3068\u8a00\u3048\u305d\u3046\u3067\u3059\u3002<br \/>\n\uff08\u751f\u6210\u7d50\u679c\u306f\u5225\u9014\u753b\u50cf\u306b\u63cf\u753b\u3057\u3066\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u3082\u3057\u3053\u306e\u30b5\u30a4\u30ba\u306e\u51fa\u529b\u306e\u3068\u304d\u3082\u3063\u3068\u9ad8\u901f\u5316\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u3044\u304f\u3064\u304b\u65b9\u6cd5\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u30ab\u30fc\u30cd\u30eb\u306e\u4e2d\u8eab\u3067\u3084\u3063\u3066\u308b\u51e6\u7406\u3092\u6e1b\u3089\u3059\u57fa\u672c\u7684\u306a\u65b9\u6cd5\u3067\u3001\u4f8b\u3048\u3070\u4e2d\u5fc3\u03bc\u304b\u3089\u306e\u8ddd\u96e2\u306b\u3088\u3063\u3066\u6c7a\u307e\u308b\u30ac\u30a6\u30b9\u5024\u3092\u4e88\u3081\u8a08\u7b97\u3057\u305fLUT\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u4f5c\u3063\u3066\u304a\u3044\u3066\uff08\u3053\u306e\u4f5c\u696d\u306f\u8fba\u306e\u30b5\u30a4\u30ban\u306b\u5bfe\u3057\u3066\u9ad8\u3005O(n)\u3067\u3059\u3080\uff09\u3001\u30ab\u30fc\u30cd\u30eb\u3067\u306f\u8ddd\u96e2\u8a08\u7b97\u3092\u3057\u3066\u3053\u306eLUT\u3092\u3072\u304f\u3060\u3051\u2026\u3068\u3059\u308c\u3070\u3001LUT\u306e\u30e1\u30e2\u30ea\u30a2\u30af\u30bb\u30b9\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304f\u306a\u3089\u3001\u8a08\u7b97\u91cf\u7684\u306b\u306f\u6570\u500d\u7a0b\u5ea6\u901f\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3042\u308b\u3044\u306f\u3001\u4eca\u56de\u306e\u554f\u984c\u8a2d\u5b9a\u3067\u306f\u4e0a\u4e0b\u5de6\u53f3\u306b\u5bfe\u79f0\u3067\u3042\u308b\u305f\u3081\u3001\u30ab\u30fc\u30cd\u30eb\u3092\u767a\u884c\u3059\u308b\u306e\u306f\u5de6\u4e0a\u306b\u3042\u305f\u308b\u9818\u57df\u3060\u3051\u306b\u3057\u3066\u3001\u305d\u308c\u3089\u304c\u5bfe\u79f0\u306b\u306a\u308b\u4ed6\u306e\u9818\u57df\u306b\u3082\u66f8\u304d\u8fbc\u3080\u3088\u3046\u306b\u3059\u308b\u3001\u3068\u3059\u308c\u3070\u3001\u8a08\u7b97\u91cf\u81ea\u4f53\u306f4\u500d\u3092\u4e0a\u9650\u3068\u3059\u308b\u9ad8\u901f\u5316\u304c\u898b\u8fbc\u3081\u307e\u3059\u3002\u6c4e\u7528\u6027\u306f\u3042\u307e\u308a\u306a\u3044\u3067\u3059\u304c\u3002LUT\u3068\u306e\u5408\u308f\u305b\u6280\u3067\u3001\u3055\u3089\u306b\u901f\u304f\u306a\u308a\u5f97\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u300116384&#215;16384\u306efloat\u914d\u5217\u306f1.07GB\u306a\u306e\u3067\u3001\u30e1\u30e2\u30ea\u5e2f\u57df\u304c\u9ad8\u3005500GB\/s\u5f31\u3057\u304b\u306a\u3044GTX1080Ti\u3067\u306f\u3001\u7406\u8ad6\u5024\u304c\u767a\u63ee\u3067\u304d\u3066\u3082\u305b\u3044\u305c\u30441\/500s\u3064\u307e\u308a\u7d042ms\u304c\u9650\u754c\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u001c<br \/>\n\u3059\u3067\u306b\u3053\u306e\u30ab\u30fc\u30cd\u30eb\u3067\u30e1\u30e2\u30ea\u5e2f\u57df\u306e50%\u3092\u5f15\u304d\u51fa\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u306d\u3002<\/p>\n<p>GPGPU\u306f\u5965\u304c\u6df1\u304f\u697d\u3057\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>8000\u30e1\u30fc\u30c8\u30eb\u306a\u3069\u3092\u8d85\u3048\u308b\u3088\u3046\u306a\u8d85\u6df1\u6d77\u3067\u306f\u3001\u8d85\u9ad8\u5727\u306e\u305f\u3081\u30bf\u30f3\u30d1\u30af\u8cea\u306e\u69cb\u9020\u81ea\u4f53\u304c\u4fdd\u3066\u306a\u304f\u306a\u308b\uff08\u6c34\u5206\u5b50\u304c\u4fb5\u5165\u3057\u7834\u58ca\u3055\u308c\u308b\uff09\u3053\u3068\u304b\u3089\u3001\u901a\u5e38\u306e\u69cb\u9020\u306e\u5ef6\u9577\u3068\u3057\u3066\u306e\u751f\u7269\u306f\u751f\u606f\u3067\u304d\u306a\u3044\u306e\u3060\u305d\u3046\u3067\u3059\u3002\u305d\u3053\u306b\u3044\u308b\u751f\u7269\u306f\u3001TMAO\u3068\u3044\u3046\u7269 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[57,58,48],"class_list":["post-2457","post","type-post","status-publish","format-standard","hentry","category-1","tag-chainer","tag-cupy","tag-python"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/2457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2457"}],"version-history":[{"count":42,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/2457\/revisions"}],"predecessor-version":[{"id":2507,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/2457\/revisions\/2507"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}