{"action":"created","issue":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1456","repository_url":"https://api.github.com/repos/xianyi/OpenBLAS","labels_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1456/labels{/name}","comments_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1456/comments","events_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1456/events","html_url":"https://github.com/xianyi/OpenBLAS/issues/1456","id":296194724,"number":1456,"title":"Compilation hangs on fork safety test","user":{"login":"larry0123du","id":11513232,"avatar_url":"https://avatars0.githubusercontent.com/u/11513232?v=4","gravatar_id":"","url":"https://api.github.com/users/larry0123du","html_url":"https://github.com/larry0123du","followers_url":"https://api.github.com/users/larry0123du/followers","following_url":"https://api.github.com/users/larry0123du/following{/other_user}","gists_url":"https://api.github.com/users/larry0123du/gists{/gist_id}","starred_url":"https://api.github.com/users/larry0123du/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larry0123du/subscriptions","organizations_url":"https://api.github.com/users/larry0123du/orgs","repos_url":"https://api.github.com/users/larry0123du/repos","events_url":"https://api.github.com/users/larry0123du/events{/privacy}","received_events_url":"https://api.github.com/users/larry0123du/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-11T14:38:12Z","updated_at":"2018-02-11T16:07:40Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n  I was trying to compile OpenBLAS on Ubuntu using the following command\r\n`make NO_AFFINITY=1 USE_OPENMP=1`\r\nand the compilation hangs on the fork test\r\n![image](https://user-images.githubusercontent.com/11513232/36074545-39467ecc-0f0f-11e8-9cd4-06506051c162.png)\r\nAny ideas how this works? Thank you."},"comment":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/comments/364762725","html_url":"https://github.com/xianyi/OpenBLAS/issues/1456#issuecomment-364762725","issue_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1456","id":364762725,"user":{"login":"brada4","id":16061801,"avatar_url":"https://avatars3.githubusercontent.com/u/16061801?v=4","gravatar_id":"","url":"https://api.github.com/users/brada4","html_url":"https://github.com/brada4","followers_url":"https://api.github.com/users/brada4/followers","following_url":"https://api.github.com/users/brada4/following{/other_user}","gists_url":"https://api.github.com/users/brada4/gists{/gist_id}","starred_url":"https://api.github.com/users/brada4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brada4/subscriptions","organizations_url":"https://api.github.com/users/brada4/orgs","repos_url":"https://api.github.com/users/brada4/repos","events_url":"https://api.github.com/users/brada4/events{/privacy}","received_events_url":"https://api.github.com/users/brada4/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T16:07:40Z","updated_at":"2018-02-11T16:07:40Z","author_association":"CONTRIBUTOR","body":"1st/  try CC=clang instead\r\n2nd/ try to fix OpenBLAS (I cannot repeat freeze in similar virtual machine, there is something else \"specific\" in your setup)\r\nCan you try adding 3 lines in common.h to use formally correct OMP yielding (the wrappings around it are not portable)\r\n\r\n```\r\n#ifndef YIELDING\r\n#define YIELDING        __asm__ __volatile__ (\"nop;nop;nop;nop;nop;nop;nop;nop;\\n\");\r\n#endif\r\n#endif\r\n*/\r\n\r\n+++ #ifdef _OPENMP\r\n+++ #define YIELDING        _Pragma (\"omp taskyield\");\r\n+++ #endif\r\n\r\n#ifndef YIELDING\r\n#define YIELDING        sched_yield()\r\n```"}}
{"actor":{"display_login":"brada4"}}