{"id":2621,"date":"2013-05-29T22:44:59","date_gmt":"2013-05-29T13:44:59","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=2621"},"modified":"2013-05-29T22:52:10","modified_gmt":"2013-05-29T13:52:10","slug":"cu-hpp%e3%81%8c%e4%b8%80%e5%bf%9cwindows%e3%81%a7%e3%82%82%e4%bd%bf%e3%81%88%e3%81%9f","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/2621","title":{"rendered":"cu.hpp\u304c\u4e00\u5fdcWindows\u3067\u3082\u4f7f\u3048\u305f"},"content":{"rendered":"<p>\u3053\u306e\u524d\u516c\u958b\u3057\u305f<a href=\"https:\/\/github.com\/peta-okechan\/cu.hpp\" target=\"_blank\">cu.hpp<\/a>\u3092Windows\u3067\u3082\u8a66\u3057\u3066\u307f\u305f\u3089\u4f7f\u3048\u305f\u3002<br \/>\n\u3068\u3044\u3063\u3066\u3082\u78ba\u8a8d\u3057\u305f\u30b3\u30f3\u30d1\u30a4\u30e9\u306fVC++\u3067\u306f\u306a\u304f\u3066clang++\u3002<\/p>\n<p>Windows7 &#038; MinGW &#038; cmake &#038; LLVM clang\u3068\u3044\u3046\u611f\u3058\u3002<br \/>\n\u305f\u3060\u3057\u3053\u308c\u306f\u3001Driver API\u3092\u5229\u7528\u3057\u305f\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u3060\u3051\u306e\u8a71\u3002<br \/>\nnvcc\u3092\u4f7f\u3063\u305f\u30ab\u30fc\u30cd\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u5f8c\u8ff0\u3002<\/p>\n<p>MinGW\u3068cmake\u306fWindows\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u4f7f\u3063\u305f\u306e\u3067\u697d\u3060\u3063\u305f\u3002<br \/>\nclang\u306fWindows\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u308b\u3060\u3051\u3002<br \/>\n\u5f8c\u306f\u3001MinGW\u3068clang\u306ebin\u306b\u30d1\u30b9\u3092\u901a\u305b\u3070\u6e96\u5099\u5b8c\u4e86\u3002<\/p>\n<p>CMakeLists.txt\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">CMAKE_MINIMUM_REQUIRED(VERSION 2.8)\r\n\r\nPROJECT(CUDATest)\r\n\r\nSET(CMAKE_CXX_COMPILER clang++)\r\nADD_DEFINITIONS(&quot;-Wall -std=c++0x&quot;)\r\n\r\nINCLUDE_DIRECTORIES(&quot;\/Program Files\/NVIDIA GPU Computing Toolkit\/CUDA\/v5.0\/include&quot;)\r\n\r\nADD_EXECUTABLE(main\r\n    main.cpp\r\n    CUDABvh.cpp\r\n)\r\n\r\nTARGET_LINK_LIBRARIES(main &quot;\/Program Files\/NVIDIA GPU Computing Toolkit\/CUDA\/v5.0\/lib\/Win32\/cuda.lib&quot;)\r\n\r\nEXECUTE_PROCESS(COMMAND nvcc -ptx -arch=sm_11 kernel.cu)<\/pre>\n<p>LINK_DIRECTORIES\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3057\u3066TARGET_LINK_LIBRARIES\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u540d(cuda)\u3060\u3051\u3092\u6307\u5b9a\u3059\u308b\u666e\u901a\u306e\u3084\u308a\u65b9\u3060\u3068\u3001ld.exe\u304c\u591a\u5206libcuda.a\u3068\u304b\u3092\u63a2\u3057\u306b\u884c\u3063\u3066\u3057\u307e\u3044\u30ea\u30f3\u30af\u306b\u5931\u6557\u3059\u308b\u306e\u3067TARGET_LINK_LIBRARIES\u306b\u30d5\u30eb\u30d1\u30b9\u3092\u6e21\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>windows.h\u306a\u3069\u306e\u30d8\u30c3\u30c0\u3084\u5404\u7a2e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u5834\u5408\u306e\u4e8b\u3084\u3001nvcc\u304ccl.exe\uff08Visual C++ Compiler\uff09\u7b49\u306b\u4f9d\u5b58\u3057\u3066\u308b\u4e8b\u3092\u8003\u3048\u308b\u3068\u3001MinGW\u3084clang\u3060\u3051\u3067\u306f\u306a\u304fWindows SDK\u304bVisual Studio\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3002<br \/>\n\uff08\u5fc5\u8981\u306a\u3082\u306e\u3092\u5fc5\u8981\u306a\u5834\u6240\u306b\u8a2d\u7f6e\u3057\u3066\u304d\u3061\u3093\u3068\u8a2d\u5b9a\u51fa\u6765\u308b\u306a\u3089\u305d\u306e\u9650\u308a\u3067\u306f\u306a\u3044\u3068\u601d\u3046\u3051\u3069\u3001Windows\u3067\u305d\u306e\u624b\u306e\u4e8b\u3092\u3084\u308b\u306e\u306f\u304b\u306a\u308a\u3057\u3093\u3069\u3044\u3068\u601d\u3046\u3002\uff09<br \/>\nWindows SDK\u306fWindows\u3068\u3044\u3046MS\u306e\u67f1\u3068\u306a\u308b\u88fd\u54c1\u540d\u3092\u51a0\u3057\u3066\u3044\u306a\u304c\u3089\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u4e0d\u5177\u5408\u3068\u304b\u653e\u7f6e\u3055\u308c\u3066\u3066\u3061\u3083\u3093\u3068\u3084\u308b\u306e\u304c\u3061\u3087\u3063\u3068\u9762\u5012\u306a\u306e\u3067\u3001\u7d20\u76f4\u306bVisual Studio Express\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u304c\u73fe\u6642\u70b9\u3067\u306f\u697d\u3002<br \/>\n\u3042\u3068\u3001Windows\u74b0\u5883\u3060\u3068nvcc\u306fIntel\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u308b\u306e\u3067\u305d\u3061\u3089\u3092\u7528\u610f\u3067\u304d\u308b\u306a\u3089cl.exe\u306f\u5fc5\u8981\u306a\u3044\u304b\u3082\u3002\uff08\u672a\u78ba\u8a8d\uff09<br \/>\nnvcc\u304cWindows\u74b0\u5883\u3067\u3082gcc\u3084clang\u306b\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u305f\u3089\u3044\u3044\u306e\u306b\u3002<\/p>\n<p>ptx\u30d5\u30a1\u30a4\u30eb\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u6307\u5b9a\u3057\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u5bfe\u5fdc\u3057\u3066\u308c\u3070GPU\u304c\u5909\u308f\u3063\u3066\u3082\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u306e\u3067\u3001Driver API\u3067\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u3068\u30ab\u30fc\u30cd\u30eb\u3092\u5206\u96e2\u3057\u3066\u308b\u4e8b\u3092\u5229\u7528\u3057\u3066\u3001\u4ed6\u306e\u30de\u30b7\u30f3\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305fptx\u30d5\u30a1\u30a4\u30eb\u3092\u6301\u3063\u3066\u304d\u3066nvcc\u3092\u4f7f\u308f\u306a\u3044\u3068\u3044\u3046\u9078\u629e\u80a2\u3082\u3042\u308b\u3002<br \/>\n\u5358\u306a\u308b\u52d5\u4f5c\u78ba\u8a8d\u3067\u3001\u30e1\u30a4\u30f3\u306e\u958b\u767a\u74b0\u5883\u3058\u3083\u306a\u3044\u306a\u3089\u305d\u308c\u3082\u30a2\u30ea\u3002<br \/>\n\uff08Driver API\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306adll\u306fGPU\u30c9\u30e9\u30a4\u30d0\u306b\u542b\u307e\u308c\u3066\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u3060\u3051\u3058\u3083\u306a\u304f\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3082\u5fc5\u8981\u306a\u3044\u306a\u3089\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u307f\u306a\u3089\u305aCUDA Toolkit<br \/>\n\u3055\u3048\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5fc5\u8981\u306a\u3044\u3002\uff09<\/p>\n<p>\u307e\u3041\u305d\u3082\u305d\u3082\u6700\u521d\u304b\u3089\u5168\u90e8Visual Studio\u3067\u3084\u308c\u3070\u4e0a\u306b\u66f8\u3044\u305f\u3088\u3046\u306a\u3053\u3068\u306f\u5168\u304f\u5fc5\u8981\u306a\u3044\u3093\u3060\u3051\u3069\u3001C++11\u3078\u306e\u5bfe\u5fdc\u5ea6\u304c\u307e\u3060\u5fae\u5999\u306a\u306e\u3067\u3042\u307e\u308a\u4f7f\u3044\u305f\u304f\u306a\u3044\u3002<br \/>\n\u53c2\u8003: <a href=\"http:\/\/cpprocks.com\/a-comparison-of-c11-language-support-in-vs2012-g-4-7-and-clang-3-1\/\" target=\"_blank\">VS2012\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3068g++ 4.7\u3068Clang 3.1\u306eC++11\u5bfe\u5fdc\u5ea6\u306e\u6bd4\u8f03\u8a18\u4e8b<\/a><br \/>\n1\u5e74\u8fd1\u304f\u524d\u306e\u8a18\u4e8b\u3060\u3051\u3069\u3059\u3067\u306b\u305d\u306e\u6642\u70b9\u3067clang\u6700\u5f37\u306a\u3046\u3048\u306b\u3001\u304b\u306a\u308a\u6d3b\u767a\u306b\u958b\u767a\u3055\u308c\u3066\u308b\u304b\u3089\u73fe\u5728\u306f\u3055\u3089\u306b\u6700\u5f37\u5177\u5408\u304c\u9ad8\u307e\u3063\u3066\u308b\u3068\u601d\u3046\u3002<br \/>\n\u4eca\u306f\u3082\u30463.2\u3060\u3057\u3001\u6765\u67083.3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u4e88\u5b9a\u3002<br \/>\ng++\u306e\u65b9\u3082\u4eca\u306f4.8\u304c\u6700\u65b0\u307f\u305f\u3044\u3002<\/p>\n<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\" target=\"_blank\">\u4f8b\u306e\u30ec\u30a4\u30ad\u30e3\u30b9\u30c8\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/a>\uff08SoA\u5316\u6e08\u307f\uff09\u3092Windows\u306b\u6301\u3063\u3066\u3044\u3066\u307f\u305f\u3068\u3053\u308d\u3001cu.hpp\u81ea\u4f53\u306f\u5909\u66f4\u304c\u5fc5\u8981\u306a\u304b\u3063\u305f\u3051\u3069\u3001\u305d\u308c\u3092\u53c2\u7167\u3057\u3066\u308b\u5074\u306e\u30bd\u30fc\u30b9\u3067gettimeofday\u95a2\u6570\u3068\u304b\u3092\u4f7f\u3063\u3066\u305f\u306e\u3067\u3001\u305d\u306e\u8fba\u308a\u306fWindows\u306b\u5408\u308f\u305b\u3066\u4fee\u6b63\u304c\u5fc5\u8981\u3060\u3063\u305f\u3002<\/p>\n<p>Geforce GT 520\u3068GTX 560Ti\u3092\u7a4d\u3093\u3060Windows\u6a5f\u3067\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\n\u4ed6\u306eOS\u3082\u542b\u3081\u305f\u3053\u308c\u307e\u3067\u306e\u51e6\u7406\u6642\u9593\u3092\u307e\u3068\u3081\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3002<br \/>\n9400M(Mac 10.8.3)  0.5\u79d2<br \/>\nGT 520(Windows 7)  0.22\u79d2<br \/>\nGTX 460(Ubuntu 13.04)  0.027\u79d2<br \/>\nGTX 560Ti(Windows 7)  0.023\u79d2<br \/>\n\u6027\u80fd\u306e\u5dee\u304c\u305d\u306e\u307e\u307e\u73fe\u308c\u3066\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u524d\u516c\u958b\u3057\u305f<a href=\"https:\/\/github.com\/peta-okechan\/cu.hpp\" target=\"_blank\">cu.hpp<\/a>\u3092Windows\u3067\u3082\u8a66\u3057\u3066\u307f\u305f\u3089\u4f7f\u3048\u305f\u3002<br \/>\n\u3068\u3044\u3063\u3066\u3082\u78ba\u8a8d\u3057\u305f\u30b3\u30f3\u30d1\u30a4\u30e9\u306fVC++\u3067\u306f\u306a\u304f\u3066clang++\u3002<\/p>\n<p>Windows7 &#038; MinGW &#038; cmake &#038; LLVM clang\u3068\u3044\u3046\u611f\u3058\u3002<br \/>\n\u305f\u3060\u3057\u3053\u308c\u306f\u3001Driver API\u3092\u5229\u7528\u3057\u305f\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u3060\u3051\u306e\u8a71\u3002<br \/>\nnvcc\u3092\u4f7f\u3063\u305f\u30ab\u30fc\u30cd\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u5f8c\u8ff0\u3002<\/p>\n<p>MinGW\u3068cmake\u306fWindows\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u4f7f\u3063\u305f\u306e\u3067\u697d\u3060\u3063\u305f\u3002<br \/>\nclang\u306fWindows\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u308b\u3060\u3051\u3002<br \/>\n\u5f8c\u306f\u3001MinGW\u3068clang\u306ebin\u306b\u30d1\u30b9\u3092\u901a\u305b\u3070\u6e96\u5099\u5b8c\u4e86\u3002<\/p>\n<p>CMakeLists.txt\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">CMAKE_MINIMUM_REQUIRED(VERSION 2.8)\r\n\r\nPROJECT(CUDATest)\r\n\r\nSET(CMAKE_CXX_COMPILER clang++)\r\nADD_DEFINITIONS(&quot;-Wall -std=c++0x&quot;)\r\n\r\nINCLUDE_DIRECTORIES(&quot;\/Program Files\/NVIDIA GPU Computing Toolkit\/CUDA\/v5.0\/include&quot;)\r\n\r\nADD_EXECUTABLE(main\r\n    main.cpp\r\n    CUDABvh.cpp\r\n)\r\n\r\nTARGET_LINK_LIBRARIES(main &quot;\/Program Files\/NVIDIA GPU Computing Toolkit\/CUDA\/v5.0\/lib\/Win32\/cuda.lib&quot;)\r\n\r\nEXECUTE_PROCESS(COMMAND nvcc -ptx -arch=sm_11 kernel.cu)<\/pre>\n<p>LINK_DIRECTORIES\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3057\u3066TARGET_LINK_LIBRARIES\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u540d(cuda)\u3060\u3051\u3092\u6307\u5b9a\u3059\u308b\u666e\u901a\u306e\u3084\u308a\u65b9\u3060\u3068\u3001ld.exe\u304c\u591a\u5206libcuda.a\u3068\u304b\u3092\u63a2\u3057\u306b\u884c\u3063\u3066\u3057\u307e\u3044\u30ea\u30f3\u30af\u306b\u5931\u6557\u3059\u308b\u306e\u3067TARGET_LINK_LIBRARIES\u306b\u30d5\u30eb\u30d1\u30b9\u3092\u6e21\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>windows.h\u306a\u3069\u306e\u30d8\u30c3\u30c0\u3084\u5404\u7a2e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u5834\u5408\u306e\u4e8b\u3084\u3001nvcc\u304ccl.exe\uff08Visual C++ Compiler\uff09\u7b49\u306b\u4f9d\u5b58\u3057\u3066\u308b\u4e8b\u3092\u8003\u3048\u308b\u3068\u3001MinGW\u3084clang\u3060\u3051\u3067\u306f\u306a\u304fWindows SDK\u304bVisual Studio\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3002<br \/>\n\uff08\u5fc5\u8981\u306a\u3082\u306e\u3092\u5fc5\u8981\u306a\u5834\u6240\u306b\u8a2d\u7f6e\u3057\u3066\u304d\u3061\u3093\u3068\u8a2d\u5b9a\u51fa\u6765\u308b\u306a\u3089\u305d\u306e\u9650\u308a\u3067\u306f\u306a\u3044\u3068\u601d\u3046\u3051\u3069\u3001Windows\u3067\u305d\u306e\u624b\u306e\u4e8b\u3092\u3084\u308b\u306e\u306f\u304b\u306a\u308a\u3057\u3093\u3069\u3044\u3068\u601d\u3046\u3002\uff09<br \/>\nWindows SDK\u306fWindows\u3068\u3044\u3046MS\u306e\u67f1\u3068\u306a\u308b\u88fd\u54c1\u540d\u3092\u51a0\u3057\u3066\u3044\u306a\u304c\u3089\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u4e0d\u5177\u5408\u3068\u304b\u653e\u7f6e\u3055\u308c\u3066\u3066\u3061\u3083\u3093\u3068\u3084\u308b\u306e\u304c\u3061\u3087\u3063\u3068\u9762\u5012\u306a\u306e\u3067\u3001\u7d20\u76f4\u306bVisual Studio Express\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u304c\u73fe\u6642\u70b9\u3067\u306f\u697d\u3002<br \/>\n\u3042\u3068\u3001Windows\u74b0\u5883\u3060\u3068nvcc\u306fIntel\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u308b\u306e\u3067\u305d\u3061\u3089\u3092\u7528\u610f\u3067\u304d\u308b\u306a\u3089cl.exe\u306f\u5fc5\u8981\u306a\u3044\u304b\u3082\u3002\uff08\u672a\u78ba\u8a8d\uff09<br \/>\nnvcc\u304cWindows\u74b0\u5883\u3067\u3082gcc\u3084clang\u306b\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u305f\u3089\u3044\u3044\u306e\u306b\u3002<\/p>\n<p>ptx\u30d5\u30a1\u30a4\u30eb\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u6307\u5b9a\u3057\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u5bfe\u5fdc\u3057\u3066\u308c\u3070GPU\u304c\u5909\u308f\u3063\u3066\u3082\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u306e\u3067\u3001Driver API\u3067\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u3068\u30ab\u30fc\u30cd\u30eb\u3092\u5206\u96e2\u3057\u3066\u308b\u4e8b\u3092\u5229\u7528\u3057\u3066\u3001\u4ed6\u306e\u30de\u30b7\u30f3\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305fptx\u30d5\u30a1\u30a4\u30eb\u3092\u6301\u3063\u3066\u304d\u3066nvcc\u3092\u4f7f\u308f\u306a\u3044\u3068\u3044\u3046\u9078\u629e\u80a2\u3082\u3042\u308b\u3002<br \/>\n\u5358\u306a\u308b\u52d5\u4f5c\u78ba\u8a8d\u3067\u3001\u30e1\u30a4\u30f3\u306e\u958b\u767a\u74b0\u5883\u3058\u3083\u306a\u3044\u306a\u3089\u305d\u308c\u3082\u30a2\u30ea\u3002<br \/>\n\uff08Driver API\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306adll\u306fGPU\u30c9\u30e9\u30a4\u30d0\u306b\u542b\u307e\u308c\u3066\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u3060\u3051\u3058\u3083\u306a\u304f\u30db\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3082\u5fc5\u8981\u306a\u3044\u306a\u3089\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u307f\u306a\u3089\u305aCUDA Toolkit<br \/>\n\u3055\u3048\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5fc5\u8981\u306a\u3044\u3002\uff09<\/p>\n<p>\u307e\u3041\u305d\u3082\u305d\u3082\u6700\u521d\u304b\u3089\u5168\u90e8Visual Studio\u3067\u3084\u308c\u3070\u4e0a\u306b\u66f8\u3044\u305f\u3088\u3046\u306a\u3053\u3068\u306f\u5168\u304f\u5fc5\u8981\u306a\u3044\u3093\u3060\u3051\u3069\u3001C++11\u3078\u306e\u5bfe\u5fdc\u5ea6\u304c\u307e\u3060\u5fae\u5999\u306a\u306e\u3067\u3042\u307e\u308a\u4f7f\u3044\u305f\u304f\u306a\u3044\u3002<br \/>\n\u53c2\u8003: <a href=\"http:\/\/cpprocks.com\/a-comparison-of-c11-language-support-in-vs2012-g-4-7-and-clang-3-1\/\" target=\"_blank\">VS2012\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3068g++ 4.7\u3068Clang 3.1\u306eC++11\u5bfe\u5fdc\u5ea6\u306e\u6bd4\u8f03\u8a18\u4e8b<\/a><br \/>\n1\u5e74\u8fd1\u304f\u524d\u306e\u8a18\u4e8b\u3060\u3051\u3069\u3059\u3067\u306b\u305d\u306e\u6642\u70b9\u3067clang\u6700\u5f37\u306a\u3046\u3048\u306b\u3001\u304b\u306a\u308a\u6d3b\u767a\u306b\u958b\u767a\u3055\u308c\u3066\u308b\u304b\u3089\u73fe\u5728\u306f\u3055\u3089\u306b\u6700\u5f37\u5177\u5408\u304c\u9ad8\u307e\u3063\u3066\u308b\u3068\u601d\u3046\u3002<br \/>\n\u4eca\u306f\u3082\u30463.2\u3060\u3057\u3001\u6765\u67083.3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u4e88\u5b9a\u3002<br \/>\ng++\u306e\u65b9\u3082\u4eca\u306f4.8\u304c\u6700\u65b0\u307f\u305f\u3044\u3002<\/p>\n<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\" target=\"_blank\">\u4f8b\u306e\u30ec\u30a4\u30ad\u30e3\u30b9\u30c8\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/a>\uff08SoA\u5316\u6e08\u307f\uff09\u3092Windows\u306b\u6301\u3063\u3066\u3044\u3066\u307f\u305f\u3068\u3053\u308d\u3001cu.hpp\u81ea\u4f53\u306f\u5909\u66f4\u304c\u5fc5\u8981\u306a\u304b\u3063\u305f\u3051\u3069\u3001\u305d\u308c\u3092\u53c2\u7167\u3057\u3066\u308b\u5074\u306e\u30bd\u30fc\u30b9\u3067gettimeofday\u95a2\u6570\u3068\u304b\u3092\u4f7f\u3063\u3066\u305f\u306e\u3067\u3001\u305d\u306e\u8fba\u308a\u306fWindows\u306b\u5408\u308f\u305b\u3066\u4fee\u6b63\u304c\u5fc5\u8981\u3060\u3063\u305f\u3002<\/p>\n<p>Geforce GT 520\u3068GTX 560Ti\u3092\u7a4d\u3093\u3060Windows\u6a5f\u3067\u8a66\u3057\u3066\u307f\u305f\u3002<br \/>\n\u4ed6\u306eOS\u3082\u542b\u3081\u305f\u3053\u308c\u307e\u3067\u306e\u51e6\u7406\u6642\u9593\u3092\u307e\u3068\u3081\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3002<br \/>\n9400M(Mac 10.8.3)  0.5\u79d2<br \/>\nGT 520(Windows 7)  0.22\u79d2<br \/>\nGTX 460(Ubuntu 13.04)  0.027\u79d2<br \/>\nGTX 560Ti(Windows 7)  0.023\u79d2<br \/>\n\u6027\u80fd\u306e\u5dee\u304c\u305d\u306e\u307e\u307e\u73fe\u308c\u3066\u308b\u3088\u3046\u306b\u898b\u3048\u308b\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-2621","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\/2621","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=2621"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2621\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=2621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=2621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=2621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}