<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>OpenMP</anon>
  </categories>
  <description>OpenMPが提供するロック獲得／解放omp_set_lock/omp_unset_lock関数と、OpenMPメモリモデルおよびflush指示文に関するメモ。一見問題がなさそうな下記コードは、OpenMP 2.0以前の仕様に従って厳密に解釈するとプログラマの期待通り動作する保証がない。この仕様上の欠陥はOpenMP 2.5にて修正されている。 #include &lt;assert.h&gt; #include &lt;omp.h&gt; int main() { int count = 0; omp_lock_t lockvar; omp_init_lock(&amp;lockvar); #pragma omp para…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20130818%2Fp1&quot; title=&quot;OpenMP 2.0とメモリモデルの闇 - yohhoyの日記&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>2013-08-18 00:00:00</published>
  <title>OpenMP 2.0とメモリモデルの闇</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20130818/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
