{"id":2582,"date":"2013-05-25T18:06:48","date_gmt":"2013-05-25T09:06:48","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=2582"},"modified":"2013-05-25T19:22:40","modified_gmt":"2013-05-25T10:22:40","slug":"cuda%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e7%b7%9a%e5%bd%a2%e3%83%a1%e3%83%a2%e3%83%aa%ef%bc%88linear-memory%ef%bc%89%e3%81%a8array%ef%bc%88cuarray%ef%bc%89%e3%81%ae%e9%81%95%e3%81%84","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/2582","title":{"rendered":"CUDA\u306b\u304a\u3051\u308b\u7dda\u5f62\u30e1\u30e2\u30ea\uff08linear memory\uff09\u3068Array\uff08CUarray\uff09\u306e\u9055\u3044"},"content":{"rendered":"<p><ins datetime=\"2013-05-25T08:54:40+00:00\">\u3053\u306e\u8a18\u4e8b\u306f\u666e\u6bb5\u306b\u3082\u5897\u3057\u3066\u601d\u3044\u8fbc\u307f\u3067\u66f8\u3044\u3066\u308b\u5ea6\u5408\u3044\u304c\u9ad8\u3081\u306a\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u9593\u9055\u3044\u304c\u3042\u308c\u3070\u6307\u6458\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002<\/ins><\/p>\n<p>\u3069\u3061\u3089\u3082GPU\u306e\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\uff08\u30b0\u30ed\u30fc\u30d0\u30eb\u30e1\u30e2\u30ea\uff09\u4e0a\u306b\u78ba\u4fdd\u3055\u308c\u3001\u3069\u3061\u3089\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08\u30b5\u30f3\u30d7\u30e9\uff09\u3092\u901a\u3057\u3066\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3067\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u3002<br \/>\n\u305d\u306e\u969b\u3069\u3061\u3089\u306e\u5834\u5408\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304f\u3002<br \/>\n\u305d\u3046\u3044\u3046\u610f\u5473\u3067\u306f\u540c\u3058\u3088\u3046\u306a\u3082\u306e\u3001\u3068\u8a00\u3048\u308b\u304c\u7d30\u304b\u3044\u9055\u3044\u304c\u7d50\u69cb\u3042\u308b\u3002<\/p>\n<h3>\u6982\u5ff5<\/h3>\n<p>\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u6c4e\u7528\u7684\u306b\u4f7f\u3048\u308b\u30e1\u30e2\u30ea\u9818\u57df\u306e\u305f\u3081\u306e\u3082\u306e\u3002CPU\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u30d2\u30fc\u30d7\u30e1\u30e2\u30ea\u306b\u76f8\u5f53\u3057\u3001\u7528\u9014\u306f\u81ea\u7531\u3002<br \/>\n\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u81ea\u7531\u306b\u76f4\u63a5\u8aad\u307f\u66f8\u304d\u53ef\u80fd\u3060\u304c\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u3066\u8aad\u307f\u8fbc\u3080\u4e8b\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>Array\u306f\u30c6\u30af\u30b9\u30c1\u30e3\u30d5\u30a7\u30c3\u30c1\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30e1\u30e2\u30ea\u9818\u57df\u306e\u305f\u3081\u306e\u3082\u306e\u3002<br \/>\n\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3084\u30b5\u30fc\u30d5\u30a7\u30fc\u30b9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3055\u306a\u3044\u3068\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u306a\u3044\u3002<\/p>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<h4>\u751f\u6210\u65b9\u6cd5<\/h4>\n<p>\u3069\u3061\u3089\u3082\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u5074\u3067\u305d\u308c\u7528\u306eAPI\u3092\u4f7f\u3046\u3053\u3068\u3067\u751f\u6210\u3059\u308b\u3002<br \/>\ncuMemAlloc\u306a\u3069\u3067\u7dda\u5f62\u30e1\u30e2\u30ea\u3092\u3001cuArrayCreate\u306a\u3069\u3067Array\u3092\u751f\u6210\u3059\u308b\u3002<\/p>\n<h4>\u30db\u30b9\u30c8\u304b\u3089\u306e\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u66f8\u304d<\/h4>\n<p>\u3069\u3061\u3089\u3082cuMemcpy\u7cfb\u95a2\u6570\u3067\u884c\u3046\u3002<\/p>\n<h4>\u30ab\u30fc\u30cd\u30eb\u306b\u304a\u3051\u308b\u4f7f\u3044\u65b9<\/h4>\n<p>\u3069\u3061\u3089\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u3066\u540c\u3058\u3088\u3046\u306b\u3057\u3066\u4f7f\u3048\u308b\u3002<br \/>\n\u305f\u3060\u3057\u3001\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u30ab\u30fc\u30cd\u30eb\u306e\u5f15\u6570\u306b\u6e21\u3057\u3066\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u76f4\u63a5\u81ea\u7531\u306b\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u308b\u3002\uff08\u3068\u3044\u3046\u304b\u591a\u5206\u3053\u308c\u304c\u7dda\u5f62\u30e1\u30e2\u30ea\u306e\u672c\u6765\u306e\u4f7f\u3044\u65b9\u3002\uff09<\/p>\n<h3>\u5236\u9650<\/h3>\n<p>\u57fa\u672c\u7684\u306bArray\u306e\u65b9\u304c\u5236\u9650\u304c\u30ad\u30c4\u30a4\u3002<br \/>\nArray\u306e\u3072\u3068\u3064\u306e\u8981\u7d20\uff08\u30c6\u30af\u30bb\u30eb\uff09\u306funsigned int8\u3084float\u306a\u3069\u306e\u6c7a\u307e\u3063\u305f\u578b x 1 or 2 or 4\u500b\u3067\u69cb\u6210\u3055\u308c\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3002<br \/>\n\u7dda\u5f62\u30e1\u30e2\u30ea\u306e\u5834\u5408\u306f\u305d\u3046\u3044\u3046\u5236\u9650\u306f\u306a\u3044\u3002<br \/>\n\u305f\u3060\u3057\u7dda\u5f62\u30e1\u30e2\u30ea\u3067\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u3066\u8aad\u3080\u5834\u5408\u306fArray\u3068\u540c\u3058\u5358\u4f4d\u3067\u3057\u304b\u8aad\u307f\u8fbc\u3081\u306a\u3044\u3002<br \/>\n\u3069\u3061\u3089\u306e\u5834\u5408\u3082\u30ab\u30fc\u30cd\u30eb\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30c6\u30af\u30bb\u30eb\u3092\u3069\u3046\u6271\u3046\u304b\u306f\u81ea\u7531\u3067\u3042\u308a\u3001\u8907\u6570\u30c6\u30af\u30bb\u30eb\u304b\u3089\u72ec\u81ea\u306e\u69cb\u9020\u4f53\u3092\u518d\u69cb\u7bc9\u3057\u305f\u308a\u51fa\u6765\u308b\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u305f\u3068\u3057\u3066\u3082\u81ea\u7531\u306b\u72ec\u81ea\u306e\u69cb\u9020\u4f53\u3092\u4f7f\u3048\u308b\u3068\u8a00\u3048\u308b\u3002<\/p>\n<h3>\u30c6\u30af\u30b9\u30c1\u30e3\u3068\u3057\u3066\u4f7f\u3046\u5834\u5408\u306e\u89e3\u50cf\u5ea6<\/h3>\n<p>\u4f8b\u3048\u3070Compute Capability\uff08\u4ee5\u4e0bCC\uff092.0\u4ee5\u4e0a\u306e\u5834\u5408\u30011D\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u5236\u9650\u3068\u3057\u3066\u3001\u7dda\u5f62\u30e1\u30e2\u30ea\u306a\u3089\u9577\u3055\u6700\u5927134217728\uff08\u7d041\u51043\u5343\u4e07\uff09\u3060\u304c\u3001Array\u306f65536\u307e\u3067\u3068\u306a\u308b\u3002<br \/>\n\u305f\u3060\u30572D\u306b\u306a\u308b\u3068CC2.0\u4ee5\u4e0a\u306e\u5834\u5408\u5fae\u5999\u306b\u9006\u8ee2\u3059\u308b\u3002<br \/>\n\u3068\u3044\u3046\u98a8\u306b\u30c6\u30af\u30b9\u30c1\u30e3\u3068\u3057\u3066\u4f7f\u3046\u5834\u5408\u306e\u89e3\u50cf\u5ea6\u306e\u5236\u9650\u306b\u5dee\u304c\u3042\u308b\u3002<\/p>\n<h3>\u7528\u9014\u306e\u5236\u9650<\/h3>\n<p>CC 2.0\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u30b5\u30fc\u30d5\u30a7\u30fc\u30b9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08\u3056\u3063\u304f\u308a\u8a00\u3048\u3070\u66f8\u304d\u8fbc\u307f\u3082\u53ef\u80fd\u306a\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff09\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u306fArray\u306e\u307f\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002<br \/>\n\u307e\u3041\u3001\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u666e\u901a\u306b\u8aad\u307f\u66f8\u304d\u51fa\u6765\u308b\u306e\u3067\u305d\u3082\u305d\u3082\u305d\u3046\u3044\u3063\u305f\u5bfe\u5fdc\u306f\u5fc5\u8981\u306a\u3044\u3002<\/p>\n<h3>\u901f\u5ea6<\/h3>\n<p>\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u76f4\u63a5\u8aad\u307f\u66f8\u304d\u53ef\u80fd\u3060\u304c\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3059\u3053\u3068\u3067\u30c6\u30af\u30b9\u30c1\u30e3\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6709\u52b9\u306b\u306a\u308a\u8aad\u307f\u8fbc\u307f\u304c\u9ad8\u901f\u5316\u3055\u308c\u308b\u3002<br \/>\n\uff08\u4ee5\u524d\u306f\u7dda\u5f62\u30e1\u30e2\u30ea\u306e\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u52b9\u304b\u306a\u304b\u3063\u305f\u304c\u3001\u6700\u8fd1\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304f\u3089\u3057\u3044\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u4f7f\u3046\u304b\u5426\u304b\u3067\u4ee5\u524d\u307b\u3069\u306e\u901f\u5ea6\u306e\u5dee\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002\uff09<br \/>\nArray\u306f\u305d\u3082\u305d\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u7dda\u5f62\u30e1\u30e2\u30ea\u3092\u4f7f\u3046\u5834\u5408\u3088\u308a\u3055\u3089\u306b\u9ad8\u901f\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u7dda\u5f62\u30e1\u30e2\u30ea\u3068Array\u306e\u3069\u3063\u3061\u304c\u826f\u3044\u304b\u3002<br \/>\n\u5f53\u7136Array\u306b\u3057\u304b\u51fa\u6765\u306a\u3044\u3053\u3068\u3092\u3084\u308b\u3068\u304d\u306b\u306fArray\u3092\u9078\u3070\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3057\u3001\u305d\u306e\u9006\u3082\u3057\u304b\u308a\u3002<\/p>\n<p>\u554f\u984c\u306f\u3069\u3063\u3061\u3067\u3082\u3044\u3044\u5834\u5408\u306b\u3069\u3063\u3061\u3092\u9078\u3076\u304b\u3002<br \/>\n\u30b9\u30d4\u30fc\u30c9\u3092\u6c42\u3081\u308b\u5834\u5408\u306fArray\u3092\u3001\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u3001\u7279\u306b\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u3082\u306e\u3092\u4f5c\u308b\u3068\u304b\u3067\u8a2d\u8a08\u304c\u304d\u3063\u3061\u308a\u56fa\u307e\u3063\u3066\u306a\u3044\u5834\u5408\u3084\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u30c6\u30af\u30bb\u30eb\u5358\u4f4d\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u5834\u5408\u306f\u7dda\u5f62\u30e1\u30e2\u30ea\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p><ins datetime=\"2013-05-25T08:54:40+00:00\">\u3053\u306e\u8a18\u4e8b\u306f\u666e\u6bb5\u306b\u3082\u5897\u3057\u3066\u601d\u3044\u8fbc\u307f\u3067\u66f8\u3044\u3066\u308b\u5ea6\u5408\u3044\u304c\u9ad8\u3081\u306a\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u9593\u9055\u3044\u304c\u3042\u308c\u3070\u6307\u6458\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002<\/ins><\/p>\n<p>\u3069\u3061\u3089\u3082GPU\u306e\u30c7\u30d0\u30a4\u30b9\u30e1\u30e2\u30ea\uff08\u30b0\u30ed\u30fc\u30d0\u30eb\u30e1\u30e2\u30ea\uff09\u4e0a\u306b\u78ba\u4fdd\u3055\u308c\u3001\u3069\u3061\u3089\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08\u30b5\u30f3\u30d7\u30e9\uff09\u3092\u901a\u3057\u3066\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3067\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u3002<br \/>\n\u305d\u306e\u969b\u3069\u3061\u3089\u306e\u5834\u5408\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304f\u3002<br \/>\n\u305d\u3046\u3044\u3046\u610f\u5473\u3067\u306f\u540c\u3058\u3088\u3046\u306a\u3082\u306e\u3001\u3068\u8a00\u3048\u308b\u304c\u7d30\u304b\u3044\u9055\u3044\u304c\u7d50\u69cb\u3042\u308b\u3002<\/p>\n<h3>\u6982\u5ff5<\/h3>\n<p>\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u6c4e\u7528\u7684\u306b\u4f7f\u3048\u308b\u30e1\u30e2\u30ea\u9818\u57df\u306e\u305f\u3081\u306e\u3082\u306e\u3002CPU\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u30d2\u30fc\u30d7\u30e1\u30e2\u30ea\u306b\u76f8\u5f53\u3057\u3001\u7528\u9014\u306f\u81ea\u7531\u3002<br \/>\n\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u81ea\u7531\u306b\u76f4\u63a5\u8aad\u307f\u66f8\u304d\u53ef\u80fd\u3060\u304c\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u3066\u8aad\u307f\u8fbc\u3080\u4e8b\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>Array\u306f\u30c6\u30af\u30b9\u30c1\u30e3\u30d5\u30a7\u30c3\u30c1\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30e1\u30e2\u30ea\u9818\u57df\u306e\u305f\u3081\u306e\u3082\u306e\u3002<br \/>\n\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3084\u30b5\u30fc\u30d5\u30a7\u30fc\u30b9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3055\u306a\u3044\u3068\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u306a\u3044\u3002<\/p>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<h4>\u751f\u6210\u65b9\u6cd5<\/h4>\n<p>\u3069\u3061\u3089\u3082\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u5074\u3067\u305d\u308c\u7528\u306eAPI\u3092\u4f7f\u3046\u3053\u3068\u3067\u751f\u6210\u3059\u308b\u3002<br \/>\ncuMemAlloc\u306a\u3069\u3067\u7dda\u5f62\u30e1\u30e2\u30ea\u3092\u3001cuArrayCreate\u306a\u3069\u3067Array\u3092\u751f\u6210\u3059\u308b\u3002<\/p>\n<h4>\u30db\u30b9\u30c8\u304b\u3089\u306e\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u66f8\u304d<\/h4>\n<p>\u3069\u3061\u3089\u3082cuMemcpy\u7cfb\u95a2\u6570\u3067\u884c\u3046\u3002<\/p>\n<h4>\u30ab\u30fc\u30cd\u30eb\u306b\u304a\u3051\u308b\u4f7f\u3044\u65b9<\/h4>\n<p>\u3069\u3061\u3089\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u3066\u540c\u3058\u3088\u3046\u306b\u3057\u3066\u4f7f\u3048\u308b\u3002<br \/>\n\u305f\u3060\u3057\u3001\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u30ab\u30fc\u30cd\u30eb\u306e\u5f15\u6570\u306b\u6e21\u3057\u3066\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u76f4\u63a5\u81ea\u7531\u306b\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u308b\u3002\uff08\u3068\u3044\u3046\u304b\u591a\u5206\u3053\u308c\u304c\u7dda\u5f62\u30e1\u30e2\u30ea\u306e\u672c\u6765\u306e\u4f7f\u3044\u65b9\u3002\uff09<\/p>\n<h3>\u5236\u9650<\/h3>\n<p>\u57fa\u672c\u7684\u306bArray\u306e\u65b9\u304c\u5236\u9650\u304c\u30ad\u30c4\u30a4\u3002<br \/>\nArray\u306e\u3072\u3068\u3064\u306e\u8981\u7d20\uff08\u30c6\u30af\u30bb\u30eb\uff09\u306funsigned int8\u3084float\u306a\u3069\u306e\u6c7a\u307e\u3063\u305f\u578b x 1 or 2 or 4\u500b\u3067\u69cb\u6210\u3055\u308c\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3002<br \/>\n\u7dda\u5f62\u30e1\u30e2\u30ea\u306e\u5834\u5408\u306f\u305d\u3046\u3044\u3046\u5236\u9650\u306f\u306a\u3044\u3002<br \/>\n\u305f\u3060\u3057\u7dda\u5f62\u30e1\u30e2\u30ea\u3067\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u3066\u8aad\u3080\u5834\u5408\u306fArray\u3068\u540c\u3058\u5358\u4f4d\u3067\u3057\u304b\u8aad\u307f\u8fbc\u3081\u306a\u3044\u3002<br \/>\n\u3069\u3061\u3089\u306e\u5834\u5408\u3082\u30ab\u30fc\u30cd\u30eb\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30c6\u30af\u30bb\u30eb\u3092\u3069\u3046\u6271\u3046\u304b\u306f\u81ea\u7531\u3067\u3042\u308a\u3001\u8907\u6570\u30c6\u30af\u30bb\u30eb\u304b\u3089\u72ec\u81ea\u306e\u69cb\u9020\u4f53\u3092\u518d\u69cb\u7bc9\u3057\u305f\u308a\u51fa\u6765\u308b\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3057\u305f\u3068\u3057\u3066\u3082\u81ea\u7531\u306b\u72ec\u81ea\u306e\u69cb\u9020\u4f53\u3092\u4f7f\u3048\u308b\u3068\u8a00\u3048\u308b\u3002<\/p>\n<h3>\u30c6\u30af\u30b9\u30c1\u30e3\u3068\u3057\u3066\u4f7f\u3046\u5834\u5408\u306e\u89e3\u50cf\u5ea6<\/h3>\n<p>\u4f8b\u3048\u3070Compute Capability\uff08\u4ee5\u4e0bCC\uff092.0\u4ee5\u4e0a\u306e\u5834\u5408\u30011D\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u5236\u9650\u3068\u3057\u3066\u3001\u7dda\u5f62\u30e1\u30e2\u30ea\u306a\u3089\u9577\u3055\u6700\u5927134217728\uff08\u7d041\u51043\u5343\u4e07\uff09\u3060\u304c\u3001Array\u306f65536\u307e\u3067\u3068\u306a\u308b\u3002<br \/>\n\u305f\u3060\u30572D\u306b\u306a\u308b\u3068CC2.0\u4ee5\u4e0a\u306e\u5834\u5408\u5fae\u5999\u306b\u9006\u8ee2\u3059\u308b\u3002<br \/>\n\u3068\u3044\u3046\u98a8\u306b\u30c6\u30af\u30b9\u30c1\u30e3\u3068\u3057\u3066\u4f7f\u3046\u5834\u5408\u306e\u89e3\u50cf\u5ea6\u306e\u5236\u9650\u306b\u5dee\u304c\u3042\u308b\u3002<\/p>\n<h3>\u7528\u9014\u306e\u5236\u9650<\/h3>\n<p>CC 2.0\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u30b5\u30fc\u30d5\u30a7\u30fc\u30b9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08\u3056\u3063\u304f\u308a\u8a00\u3048\u3070\u66f8\u304d\u8fbc\u307f\u3082\u53ef\u80fd\u306a\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff09\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u306fArray\u306e\u307f\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002<br \/>\n\u307e\u3041\u3001\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u666e\u901a\u306b\u8aad\u307f\u66f8\u304d\u51fa\u6765\u308b\u306e\u3067\u305d\u3082\u305d\u3082\u305d\u3046\u3044\u3063\u305f\u5bfe\u5fdc\u306f\u5fc5\u8981\u306a\u3044\u3002<\/p>\n<h3>\u901f\u5ea6<\/h3>\n<p>\u7dda\u5f62\u30e1\u30e2\u30ea\u306f\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u76f4\u63a5\u8aad\u307f\u66f8\u304d\u53ef\u80fd\u3060\u304c\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3059\u3053\u3068\u3067\u30c6\u30af\u30b9\u30c1\u30e3\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6709\u52b9\u306b\u306a\u308a\u8aad\u307f\u8fbc\u307f\u304c\u9ad8\u901f\u5316\u3055\u308c\u308b\u3002<br \/>\n\uff08\u4ee5\u524d\u306f\u7dda\u5f62\u30e1\u30e2\u30ea\u306e\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u52b9\u304b\u306a\u304b\u3063\u305f\u304c\u3001\u6700\u8fd1\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304f\u3089\u3057\u3044\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u4f7f\u3046\u304b\u5426\u304b\u3067\u4ee5\u524d\u307b\u3069\u306e\u901f\u5ea6\u306e\u5dee\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002\uff09<br \/>\nArray\u306f\u305d\u3082\u305d\u3082\u30c6\u30af\u30b9\u30c1\u30e3\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u7dda\u5f62\u30e1\u30e2\u30ea\u3092\u4f7f\u3046\u5834\u5408\u3088\u308a\u3055\u3089\u306b\u9ad8\u901f\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u7dda\u5f62\u30e1\u30e2\u30ea\u3068Array\u306e\u3069\u3063\u3061\u304c\u826f\u3044\u304b\u3002<br \/>\n\u5f53\u7136Array\u306b\u3057\u304b\u51fa\u6765\u306a\u3044\u3053\u3068\u3092\u3084\u308b\u3068\u304d\u306b\u306fArray\u3092\u9078\u3070\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3057\u3001\u305d\u306e\u9006\u3082\u3057\u304b\u308a\u3002<\/p>\n<p>\u554f\u984c\u306f\u3069\u3063\u3061\u3067\u3082\u3044\u3044\u5834\u5408\u306b\u3069\u3063\u3061\u3092\u9078\u3076\u304b\u3002<br \/>\n\u30b9\u30d4\u30fc\u30c9\u3092\u6c42\u3081\u308b\u5834\u5408\u306fArray\u3092\u3001\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u3001\u7279\u306b\u3068\u308a\u3042\u3048\u305a\u52d5\u304f\u3082\u306e\u3092\u4f5c\u308b\u3068\u304b\u3067\u8a2d\u8a08\u304c\u304d\u3063\u3061\u308a\u56fa\u307e\u3063\u3066\u306a\u3044\u5834\u5408\u3084\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u30c6\u30af\u30bb\u30eb\u5358\u4f4d\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u5834\u5408\u306f\u7dda\u5f62\u30e1\u30e2\u30ea\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3046\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[289],"class_list":["post-2582","post","type-post","status-publish","format-standard","hentry","category-tech","tag-cuda"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=2582"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2582\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=2582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=2582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=2582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}