{"action":"opened","issue":{"url":"https://api.github.com/repos/clang-omp/clang_trunk/issues/22","labels_url":"https://api.github.com/repos/clang-omp/clang_trunk/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/clang-omp/clang_trunk/issues/22/comments","events_url":"https://api.github.com/repos/clang-omp/clang_trunk/issues/22/events","html_url":"https://github.com/clang-omp/clang_trunk/issues/22","id":100234273,"number":22,"title":"split target teams spawns only 1 team per default","user":{"login":"hahnjo","id":1613332,"avatar_url":"https://avatars.githubusercontent.com/u/1613332?v=3","gravatar_id":"","url":"https://api.github.com/users/hahnjo","html_url":"https://github.com/hahnjo","followers_url":"https://api.github.com/users/hahnjo/followers","following_url":"https://api.github.com/users/hahnjo/following{/other_user}","gists_url":"https://api.github.com/users/hahnjo/gists{/gist_id}","starred_url":"https://api.github.com/users/hahnjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahnjo/subscriptions","organizations_url":"https://api.github.com/users/hahnjo/orgs","repos_url":"https://api.github.com/users/hahnjo/repos","events_url":"https://api.github.com/users/hahnjo/events{/privacy}","received_events_url":"https://api.github.com/users/hahnjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-11T06:03:35Z","updated_at":"2015-08-11T06:03:35Z","closed_at":null,"body":"```C\r\n#include <stdlib.h>\r\n#include <stdio.h>\r\n\r\n#include <omp.h>\r\n\r\nint main(int argc, char* argv[])\r\n{\r\n\t#pragma omp target\r\n\t#pragma omp teams\r\n\t{\r\n\t\tprintf(\"split target and teams: %d team(s)\\n\", omp_get_num_teams());\r\n\t}\r\n\r\n\t#pragma omp target teams\r\n\t{\r\n\t\tprintf(\"combined target teams:  %d team(s)\\n\", omp_get_num_teams());\r\n\t}\r\n\r\n\treturn EXIT_SUCCESS;\r\n}\r\n```\r\n\r\nOutput:\r\n```\r\nsplit target and teams: 1 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\ncombined target teams:  14 team(s)\r\n```"}}