<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aont</author_name>
  <author_url>https://blog.hatena.ne.jp/aont/</author_url>
  <blog_title>aont’s diary</blog_title>
  <blog_url>https://aont.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>atomic addとは、あるメモリ領域に複数スレッドから数値を加えたい時に、アクセスのコンフリクトを避けるために排他制御を行い正しく和を計算するための処理のこと。CUDAでdoubleのatomicAddを行う方法はCUDA C Programming Guideに書いてある。CUDA Toolkit Documentationを参照。 コードをここに引用する。 __device__ double atomicAdd(double* address, double val) { unsigned long long int* address_as_ull = (unsigned long l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faont.hateblo.jp%2Fentry%2F20110627%2F1309192561&quot; title=&quot;OpenCLで浮動小数のatomic addをしたい - aont’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-06-27 01:36:01</published>
  <title>OpenCLで浮動小数のatomic addをしたい</title>
  <type>rich</type>
  <url>https://aont.hateblo.jp/entry/20110627/1309192561</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
