{"id":2563,"date":"2013-05-22T00:54:21","date_gmt":"2013-05-21T15:54:21","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=2563"},"modified":"2013-05-22T01:06:09","modified_gmt":"2013-05-21T16:06:09","slug":"clcreateimage%e3%81%8c%e3%81%8a%e3%81%8b%e3%81%97%e3%81%84","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/2563","title":{"rendered":"clCreateImage\u304c\u304a\u304b\u3057\u3044"},"content":{"rendered":"<p><a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2499\" title=\"CUDA\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u3068\u30b7\u30fc\u30f3\u3092\u69cb\u6210\u3059\u308b\u30dd\u30ea\u30b4\u30f3\u3068\u306e\u4ea4\u5dee\u5224\u5b9a\u3092\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f\">CUDA\u3067\u4f5c\u3063\u305f\u3042\u308c<\/a>\u3092OpenCL\u306b\u79fb\u690d\u3057\u305f\u3002<br \/>\n\u4f5c\u696d\u306fMac\u3067\u884c\u3063\u305f\u3002<\/p>\n<p>\u79fb\u690d\u3057\u305f\u6700\u521d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001CUDA\u306e\u3068\u304d\u3088\u308a2\u500d\u4ee5\u4e0a\u9045\u304b\u3063\u305f\u3002<br \/>\nCUDA\u306e\u5834\u5408\u306f\u3001\u53c2\u7167\u3059\u308b\u3060\u3051\u306e\u30c7\u30fc\u30bf\u306f\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u305f\u3051\u3069\u3001OpenCL\u7248\u3067\u306f\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306b\u8a2d\u5b9a\u3057\u305f\u30b0\u30ed\u30fc\u30d0\u30eb\u30e1\u30e2\u30ea\u3092\u4f7f\u3063\u305f\u305b\u3044\u3060\u3068\u601d\u3046\u3002<br \/>\n\u65b0\u3057\u304f\u306a\u3044GPU\u3060\u304b\u3089\u3001\u3067\u304d\u308b\u3060\u3051\u30c6\u30af\u30b9\u30c1\u30e3\u30a2\u30af\u30bb\u30b9\u306b\u3057\u306a\u3044\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304b\u306a\u3044\u306e\u3060\u3002<\/p>\n<p>\u3053\u306e\u5dee\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306b\u3001CUDA\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u76f8\u5f53\u3059\u308b\u3068\u601d\u308f\u308c\u308bImage2D\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u3069\u3046\u3082clCreateImage\u306e\u52d5\u304d\u304c\u304a\u304b\u3057\u3044\u3002<br \/>\n\u7279\u306b\u304a\u304b\u3057\u306aflag\u306f\u6e21\u3057\u3066\u306a\u3044\u306e\u306b\u3001CL_INVALID_VALUE\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002<br \/>\nwidth, height\u3092128\u3068\u304b\u5c0f\u3055\u3081\u306b\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u3002<br \/>\nCL_DEVICE_IMAGE2D_MAX_WIDTH, CL_DEVICE_IMAGE2D_MAX_HEIGHT\u306f\u305d\u308c\u305e\u308c4096\u306b\u306a\u3063\u3066\u308b\u306e\u306b\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f15\u6570\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u3002(C++ Wrapper\u3092\u4f7f\u3063\u3066\u3044\u308b)<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">cl::Image2D hoge(ctx, CL_MEM_READ_ONLY, cl::ImageFormat(CL_RGBA, CL_UNORM_INT8), 1024, 1024);<\/pre>\n<p>\u3053\u308c\u3092Wrapper\u3092\u901a\u3055\u305a\u306b\u76f4\u63a5clCreateImage\u3092\u3057\u3066\u3082\u540c\u3058\u3002<br \/>\n\u3057\u304b\u3057OpenCL 1.2\u3067\u306fdepricated\u306b\u306a\u3063\u3066\u308bclCreateImage2D\u3092\u4f7f\u3046\u3068\u5927\u4e08\u592b\u3063\u307d\u3044\u3002<br \/>\n\u5927\u4e08\u592b\u3068\u3044\u3046\u306e\u306f\u3001\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u3063\u3066\u3060\u3051\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u6b63\u3057\u304f\u8aad\u3081\u308b\u304b\u306f\u78ba\u8a8d\u3057\u3066\u306a\u3044\u3002<br \/>\n\u6b63\u3057\u304f\u8aad\u3081\u305f\u3068\u3057\u3066\u3082\u3001\u3053\u3093\u306a\u5fae\u5999\u306a\u74b0\u5883\u3067\u306f\u5f8c\u3067\u75db\u3044\u76ee\u306b\u3042\u3044\u305d\u3046\u3060\u304b\u3089\u3084\u308a\u305f\u304f\u306a\u3044\u3002<\/p>\n<p>\u3042\u3068\u30c7\u30d0\u30a4\u30b9\u5074\u306fOpenCL C 1.0\u3069\u307e\u308a\u306a\u3093\u3060\u3051\u3069\u30011.0\u3067\u5bfe\u5fdc\u3057\u3066\u306a\u3044\u306f\u305a\u306eimage1d_t\u3092\u30ab\u30fc\u30cd\u30eb\u306e\u4e2d\u3067\u4f7f\u3063\u3066\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u3084\u30d3\u30eb\u30c9\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3089\u305a\u306b\u5b9f\u884c\u51fa\u6765\u3066\u3057\u307e\u3046\u3002<br \/>\n\u3067\u3082\u5b9f\u969b\u306f\u6b63\u3057\u3044\u5024\u306f\u8aad\u307f\u53d6\u308c\u306a\u3044\u306e\u3067\u6b63\u3057\u3044\u7d50\u679c\u306b\u306f\u306a\u3089\u306a\u3044\u3002\uff08\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u304c\u30ba\u30ec\u3066\u308b\u611f\u3058\uff09<br \/>\n\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u306b\u4e2d\u9014\u534a\u7aef\u306b\u5b9f\u884c\u51fa\u6765\u3066\u3057\u307e\u3046\u306e\u306f\u30e4\u30d0\u3044\u3068\u601d\u3046\u3002<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3084\u30d3\u30eb\u30c9\u6bb5\u968e\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u304f\u3066\u3082\u3001\u6700\u4f4e\u9650\u30ab\u30fc\u30cd\u30eb\u306e\u5b9f\u884c\u6642\u306b\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u307b\u3057\u3044\u3002<\/p>\n<p>\u8272\u3005\u8abf\u3079\u3066\u308b\u4e2d\u3067\u601d\u3063\u305f\u3093\u3060\u3051\u3069\u3001OpenCL\u3063\u3066\u74b0\u5883\u4f9d\u5b58\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u4f9d\u5b58\u306e\u554f\u984c\u304c\u591a\u3044\u5370\u8c61\u304c\u3042\u308b\u3002<br \/>\nCUDA\u306e\u307b\u3046\u306fNVIDIA\u4ee5\u5916\u306e\u74b0\u5883\u3092\u5207\u308a\u6368\u3066\u3066\u308b\u306e\u3067\u74b0\u5883\u4f9d\u5b58\u306e\u554f\u984c\u306f\u5c11\u306a\u304f\u3066\u5f53\u305f\u308a\u524d\u306a\u3093\u3060\u3051\u3069\u3001\u305d\u308c\u306b\u3057\u3066\u3082OpenCL\u306f\u3002\u3068\u3044\u3046\u611f\u3058\u3002<br \/>\n\u3057\u304b\u3082\u672c\u683c\u5229\u7528\u3057\u3066\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u305d\u3093\u306a\u306b\u591a\u304f\u306a\u3044\u3046\u3048\u306b\u3001\u74b0\u5883\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u60c5\u5831\u304c\u6563\u308a\u6563\u308a\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3066\u3001\u8abf\u3079\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u611f\u3058\u3002<br \/>\nKhronos\u306e\u30b5\u30a4\u30c8\u306f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u3057\u3066\u306f\u5341\u5206\u3060\u3051\u3069\u3001\u5fae\u5999\u306a\u554f\u984c\u304c\u8d77\u304d\u305f\u3068\u304d\u306f\u4e00\u822c\u7684\u306b\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f\u5f79\u306b\u305f\u305f\u306a\u3044\u308f\u3051\u3067\u3001\u305d\u3046\u3044\u3046\u3068\u304d\u306f\u30e6\u30fc\u30b6\u306e\u591a\u3055\u3068\u60c5\u5831\u306e\u307e\u3068\u307e\u308a\u5177\u5408\u304c\u5927\u4e8b\u3060\u3068\u601d\u3046\u3002<\/p>\n<p>Mac(Geforce 9400M)+CUDA\u304c\u4e0d\u5b89\u5b9a\u3060\u304b\u3089\u3001\u4e00\u7aefUbuntu\u3067CUDA\u3084\u308d\u3046\u3068\u601d\u3063\u3066\u3001\u3067\u3082Mac(Geforce 9400M)+OpenCL\u304c\u5b89\u5b9a\u3057\u3066\u308b\u306a\u3089\u305d\u3063\u3061\u306e\u307b\u3046\u304c\u3044\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u307e\u305f\u623b\u3063\u3066\u304d\u3066\u305f\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u3067\u306f\u3061\u3087\u3063\u3068\u304d\u3073\u3057\u3044\u3002<br \/>\nMac\u3067GPGPU\uff08Open&#8221;G&#8221;L\u3092\u5229\u7528\u3057\u305f\u3082\u306e\u3092\u9664\u304f\uff09\u3092\u3084\u308d\u3046\u3063\u3066\u306e\u304c\u3042\u307e\u308a\u826f\u3044\u9078\u629e\u80a2\u3067\u306f\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<br \/>\n\u65b0\u3057\u3044\u30de\u30b7\u30f3\u306a\u3089\u305d\u3046\u3067\u3082\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3002<\/p>\n<p>Mac(Geforce 9400M)+CUDA\u306b\u3064\u3044\u3066\u306f\u3001\u4e0d\u5b89\u5b9a\u3068\u3044\u3063\u3066\u3082\u305f\u307e\u306bcuInit\u306b\u5931\u6557\u3057\u305f\u308a\u30e1\u30e2\u30ea\u304c\u78ba\u4fdd\u51fa\u6765\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3060\u3051\u3067\u3001\u305d\u3046\u3044\u3046\u5834\u5408\u306f\u304d\u3061\u3093\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3057\u3001\u5b9f\u884c\u51fa\u6765\u305f\u3068\u304d\u306f\u4e2d\u9014\u534a\u7aef\u306a\u7d50\u679c\u306b\u306f\u306a\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306eOpenCL\u306e\u5834\u5408\u3088\u308a\u7cbe\u795e\u885b\u751f\u4e0a\u307e\u3060\u30de\u30b7\u3060\u3063\u305f\u3002<br \/>\n\u65b0\u3057\u3044GPU\u30c9\u30e9\u30a4\u30d0\u3092\u7528\u610f\u51fa\u6765\u308b\u74b0\u5883\u306a\u3089\u3001\u5b89\u5b9a\u3057\u3066\u52d5\u304f\u3060\u308d\u3046\u3068\u3044\u3046\u601d\u3044\u3082\u3042\u3063\u305f\u3057\u3002<br \/>\n\u5b9f\u969b\u3001\u65b0\u3057\u3044GPU\u30c9\u30e9\u30a4\u30d0\u3092\u7528\u610f\u3057\u3066Ubuntu\u3067\u69cb\u7bc9\u3057\u305f\u74b0\u5883\uff08\u81ea\u4f5c\u6a5f\uff09\u3067\u306f\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3002\u304c\u3001\u3053\u306e\u74b0\u5883\u306a\u3089OpenCL\u306e\u65b9\u3082\u5b89\u5b9a\u3059\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2499\" title=\"CUDA\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u3068\u30b7\u30fc\u30f3\u3092\u69cb\u6210\u3059\u308b\u30dd\u30ea\u30b4\u30f3\u3068\u306e\u4ea4\u5dee\u5224\u5b9a\u3092\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f\">CUDA\u3067\u4f5c\u3063\u305f\u3042\u308c<\/a>\u3092OpenCL\u306b\u79fb\u690d\u3057\u305f\u3002<br \/>\n\u4f5c\u696d\u306fMac\u3067\u884c\u3063\u305f\u3002<\/p>\n<p>\u79fb\u690d\u3057\u305f\u6700\u521d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001CUDA\u306e\u3068\u304d\u3088\u308a2\u500d\u4ee5\u4e0a\u9045\u304b\u3063\u305f\u3002<br \/>\nCUDA\u306e\u5834\u5408\u306f\u3001\u53c2\u7167\u3059\u308b\u3060\u3051\u306e\u30c7\u30fc\u30bf\u306f\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u305f\u3051\u3069\u3001OpenCL\u7248\u3067\u306f\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306b\u8a2d\u5b9a\u3057\u305f\u30b0\u30ed\u30fc\u30d0\u30eb\u30e1\u30e2\u30ea\u3092\u4f7f\u3063\u305f\u305b\u3044\u3060\u3068\u601d\u3046\u3002<br \/>\n\u65b0\u3057\u304f\u306a\u3044GPU\u3060\u304b\u3089\u3001\u3067\u304d\u308b\u3060\u3051\u30c6\u30af\u30b9\u30c1\u30e3\u30a2\u30af\u30bb\u30b9\u306b\u3057\u306a\u3044\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u304b\u306a\u3044\u306e\u3060\u3002<\/p>\n<p>\u3053\u306e\u5dee\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306b\u3001CUDA\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u76f8\u5f53\u3059\u308b\u3068\u601d\u308f\u308c\u308bImage2D\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u3069\u3046\u3082clCreateImage\u306e\u52d5\u304d\u304c\u304a\u304b\u3057\u3044\u3002<br \/>\n\u7279\u306b\u304a\u304b\u3057\u306aflag\u306f\u6e21\u3057\u3066\u306a\u3044\u306e\u306b\u3001CL_INVALID_VALUE\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002<br \/>\nwidth, height\u3092128\u3068\u304b\u5c0f\u3055\u3081\u306b\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u3002<br \/>\nCL_DEVICE_IMAGE2D_MAX_WIDTH, CL_DEVICE_IMAGE2D_MAX_HEIGHT\u306f\u305d\u308c\u305e\u308c4096\u306b\u306a\u3063\u3066\u308b\u306e\u306b\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f15\u6570\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u3002(C++ Wrapper\u3092\u4f7f\u3063\u3066\u3044\u308b)<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">cl::Image2D hoge(ctx, CL_MEM_READ_ONLY, cl::ImageFormat(CL_RGBA, CL_UNORM_INT8), 1024, 1024);<\/pre>\n<p>\u3053\u308c\u3092Wrapper\u3092\u901a\u3055\u305a\u306b\u76f4\u63a5clCreateImage\u3092\u3057\u3066\u3082\u540c\u3058\u3002<br \/>\n\u3057\u304b\u3057OpenCL 1.2\u3067\u306fdepricated\u306b\u306a\u3063\u3066\u308bclCreateImage2D\u3092\u4f7f\u3046\u3068\u5927\u4e08\u592b\u3063\u307d\u3044\u3002<br \/>\n\u5927\u4e08\u592b\u3068\u3044\u3046\u306e\u306f\u3001\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u3063\u3066\u3060\u3051\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u6b63\u3057\u304f\u8aad\u3081\u308b\u304b\u306f\u78ba\u8a8d\u3057\u3066\u306a\u3044\u3002<br \/>\n\u6b63\u3057\u304f\u8aad\u3081\u305f\u3068\u3057\u3066\u3082\u3001\u3053\u3093\u306a\u5fae\u5999\u306a\u74b0\u5883\u3067\u306f\u5f8c\u3067\u75db\u3044\u76ee\u306b\u3042\u3044\u305d\u3046\u3060\u304b\u3089\u3084\u308a\u305f\u304f\u306a\u3044\u3002<\/p>\n<p>\u3042\u3068\u30c7\u30d0\u30a4\u30b9\u5074\u306fOpenCL C 1.0\u3069\u307e\u308a\u306a\u3093\u3060\u3051\u3069\u30011.0\u3067\u5bfe\u5fdc\u3057\u3066\u306a\u3044\u306f\u305a\u306eimage1d_t\u3092\u30ab\u30fc\u30cd\u30eb\u306e\u4e2d\u3067\u4f7f\u3063\u3066\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u3084\u30d3\u30eb\u30c9\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3089\u305a\u306b\u5b9f\u884c\u51fa\u6765\u3066\u3057\u307e\u3046\u3002<br \/>\n\u3067\u3082\u5b9f\u969b\u306f\u6b63\u3057\u3044\u5024\u306f\u8aad\u307f\u53d6\u308c\u306a\u3044\u306e\u3067\u6b63\u3057\u3044\u7d50\u679c\u306b\u306f\u306a\u3089\u306a\u3044\u3002\uff08\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u304c\u30ba\u30ec\u3066\u308b\u611f\u3058\uff09<br \/>\n\u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u306b\u4e2d\u9014\u534a\u7aef\u306b\u5b9f\u884c\u51fa\u6765\u3066\u3057\u307e\u3046\u306e\u306f\u30e4\u30d0\u3044\u3068\u601d\u3046\u3002<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3084\u30d3\u30eb\u30c9\u6bb5\u968e\u3067\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u304f\u3066\u3082\u3001\u6700\u4f4e\u9650\u30ab\u30fc\u30cd\u30eb\u306e\u5b9f\u884c\u6642\u306b\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u307b\u3057\u3044\u3002<\/p>\n<p>\u8272\u3005\u8abf\u3079\u3066\u308b\u4e2d\u3067\u601d\u3063\u305f\u3093\u3060\u3051\u3069\u3001OpenCL\u3063\u3066\u74b0\u5883\u4f9d\u5b58\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u4f9d\u5b58\u306e\u554f\u984c\u304c\u591a\u3044\u5370\u8c61\u304c\u3042\u308b\u3002<br \/>\nCUDA\u306e\u307b\u3046\u306fNVIDIA\u4ee5\u5916\u306e\u74b0\u5883\u3092\u5207\u308a\u6368\u3066\u3066\u308b\u306e\u3067\u74b0\u5883\u4f9d\u5b58\u306e\u554f\u984c\u306f\u5c11\u306a\u304f\u3066\u5f53\u305f\u308a\u524d\u306a\u3093\u3060\u3051\u3069\u3001\u305d\u308c\u306b\u3057\u3066\u3082OpenCL\u306f\u3002\u3068\u3044\u3046\u611f\u3058\u3002<br \/>\n\u3057\u304b\u3082\u672c\u683c\u5229\u7528\u3057\u3066\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u305d\u3093\u306a\u306b\u591a\u304f\u306a\u3044\u3046\u3048\u306b\u3001\u74b0\u5883\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u60c5\u5831\u304c\u6563\u308a\u6563\u308a\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3066\u3001\u8abf\u3079\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u611f\u3058\u3002<br \/>\nKhronos\u306e\u30b5\u30a4\u30c8\u306f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u3057\u3066\u306f\u5341\u5206\u3060\u3051\u3069\u3001\u5fae\u5999\u306a\u554f\u984c\u304c\u8d77\u304d\u305f\u3068\u304d\u306f\u4e00\u822c\u7684\u306b\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306f\u5f79\u306b\u305f\u305f\u306a\u3044\u308f\u3051\u3067\u3001\u305d\u3046\u3044\u3046\u3068\u304d\u306f\u30e6\u30fc\u30b6\u306e\u591a\u3055\u3068\u60c5\u5831\u306e\u307e\u3068\u307e\u308a\u5177\u5408\u304c\u5927\u4e8b\u3060\u3068\u601d\u3046\u3002<\/p>\n<p>Mac(Geforce 9400M)+CUDA\u304c\u4e0d\u5b89\u5b9a\u3060\u304b\u3089\u3001\u4e00\u7aefUbuntu\u3067CUDA\u3084\u308d\u3046\u3068\u601d\u3063\u3066\u3001\u3067\u3082Mac(Geforce 9400M)+OpenCL\u304c\u5b89\u5b9a\u3057\u3066\u308b\u306a\u3089\u305d\u3063\u3061\u306e\u307b\u3046\u304c\u3044\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u307e\u305f\u623b\u3063\u3066\u304d\u3066\u305f\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u3067\u306f\u3061\u3087\u3063\u3068\u304d\u3073\u3057\u3044\u3002<br \/>\nMac\u3067GPGPU\uff08Open&#8221;G&#8221;L\u3092\u5229\u7528\u3057\u305f\u3082\u306e\u3092\u9664\u304f\uff09\u3092\u3084\u308d\u3046\u3063\u3066\u306e\u304c\u3042\u307e\u308a\u826f\u3044\u9078\u629e\u80a2\u3067\u306f\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<br \/>\n\u65b0\u3057\u3044\u30de\u30b7\u30f3\u306a\u3089\u305d\u3046\u3067\u3082\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3002<\/p>\n<p>Mac(Geforce 9400M)+CUDA\u306b\u3064\u3044\u3066\u306f\u3001\u4e0d\u5b89\u5b9a\u3068\u3044\u3063\u3066\u3082\u305f\u307e\u306bcuInit\u306b\u5931\u6557\u3057\u305f\u308a\u30e1\u30e2\u30ea\u304c\u78ba\u4fdd\u51fa\u6765\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3060\u3051\u3067\u3001\u305d\u3046\u3044\u3046\u5834\u5408\u306f\u304d\u3061\u3093\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3057\u3001\u5b9f\u884c\u51fa\u6765\u305f\u3068\u304d\u306f\u4e2d\u9014\u534a\u7aef\u306a\u7d50\u679c\u306b\u306f\u306a\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306eOpenCL\u306e\u5834\u5408\u3088\u308a\u7cbe\u795e\u885b\u751f\u4e0a\u307e\u3060\u30de\u30b7\u3060\u3063\u305f\u3002<br \/>\n\u65b0\u3057\u3044GPU\u30c9\u30e9\u30a4\u30d0\u3092\u7528\u610f\u51fa\u6765\u308b\u74b0\u5883\u306a\u3089\u3001\u5b89\u5b9a\u3057\u3066\u52d5\u304f\u3060\u308d\u3046\u3068\u3044\u3046\u601d\u3044\u3082\u3042\u3063\u305f\u3057\u3002<br \/>\n\u5b9f\u969b\u3001\u65b0\u3057\u3044GPU\u30c9\u30e9\u30a4\u30d0\u3092\u7528\u610f\u3057\u3066Ubuntu\u3067\u69cb\u7bc9\u3057\u305f\u74b0\u5883\uff08\u81ea\u4f5c\u6a5f\uff09\u3067\u306f\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3002\u304c\u3001\u3053\u306e\u74b0\u5883\u306a\u3089OpenCL\u306e\u65b9\u3082\u5b89\u5b9a\u3059\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\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":[456],"class_list":["post-2563","post","type-post","status-publish","format-standard","hentry","category-tech","tag-opencl"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2563","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=2563"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2563\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=2563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=2563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=2563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}