{"author_url":"https://blog.hatena.ne.jp/oimokihujin/","provider_name":"Hatena Blog","height":"190","published":"2015-04-13 15:53:24","provider_url":"https://hatena.blog","categories":["CUDA"],"blog_title":"\u304a\u3044\u3082\u8cb4\u5a66\u4eba\u30d6\u30ed\u30b0","blog_url":"https://oimokihujin.hatenablog.com/","author_name":"oimokihujin","title":"ubuntu14.04\u3078\u306ecuda\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foimokihujin.hatenablog.com%2Fentry%2F2015%2F04%2F13%2F155324\" title=\"ubuntu14.04\u3078\u306ecuda\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb - \u304a\u3044\u3082\u8cb4\u5a66\u4eba\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"width":"100%","url":"https://oimokihujin.hatenablog.com/entry/2015/04/13/155324","version":"1.0","type":"rich","description":"\u666e\u6bb5\u304b\u3089cuda\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044\u3068\u3001\u305f\u307e\u306bcuda\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u3002\u307e\u305a\u306f\u3001\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3001GPU\u306b\u30e1\u30e2\u30ea\u3092\u78ba\u4fdd\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u304b\u3081\u308b\u3002 include <stdio.h> int main(void){ int *dev_c; cudaError_t err; //GPU\u4e0a\u306b\u30e1\u30e2\u30ea\u304c\u78ba\u4fdd\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002 err=cudaMalloc((void **)&dev_c,sizeof(int)); if(err!=cudaSuccess){ printf(\"error\\n\"); } return 0; } \u3053\u308c\u3067\u3001error\u304c\u51fa\u529b\u3055\u308c\u308b\u3068\u30c9\u30e9\u30a4\u30d0\u30fc\u3084\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u30a2\u2026"}