{"action":"created","issue":{"url":"https://api.github.com/repos/RadeonOpenCompute/hcc/issues/170","repository_url":"https://api.github.com/repos/RadeonOpenCompute/hcc","labels_url":"https://api.github.com/repos/RadeonOpenCompute/hcc/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/RadeonOpenCompute/hcc/issues/170/comments","events_url":"https://api.github.com/repos/RadeonOpenCompute/hcc/issues/170/events","html_url":"https://github.com/RadeonOpenCompute/hcc/issues/170","id":190217827,"number":170,"title":"How to use  hcc_hsail in Rocm 1.3","user":{"login":"bshaozi","id":4568364,"avatar_url":"https://avatars.githubusercontent.com/u/4568364?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaozi","html_url":"https://github.com/bshaozi","followers_url":"https://api.github.com/users/bshaozi/followers","following_url":"https://api.github.com/users/bshaozi/following{/other_user}","gists_url":"https://api.github.com/users/bshaozi/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaozi/subscriptions","organizations_url":"https://api.github.com/users/bshaozi/orgs","repos_url":"https://api.github.com/users/bshaozi/repos","events_url":"https://api.github.com/users/bshaozi/events{/privacy}","received_events_url":"https://api.github.com/users/bshaozi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-18T02:06:57Z","updated_at":"2016-11-21T02:39:33Z","closed_at":null,"body":"I had compiled my code successful and run correctly  in rocm 1.2 envrionment(Kaveri).\r\n But after I update the rocm to 1.3, I found it seems the hcc_hsail had been deprecated. \r\nSo, I use '/opt/rocm/hcc/' instead of `/opt/rocm/hcc-hsail/`. (for instance , use /opt/rocm/hcc/bin/hcc `/opt/rocm/hcc/bin/hcc-config --cxxflags  --ldflags`  -I /opt/rocm/hcc/include/ xxx.cpp -o xxx  to compile). It compiles successful.\r\nBut it returns error when running.follows is the error information.\r\n### HCC STATUS_CHECK Error: HSA_STATUS_ERROR_INCOMPATIBLE_ARGUMENTS (0x100d) at file:/home/scchan/code/github/radeonopencompute/hcc.1.3/hcc/lib/hsa/mcwamp_hsa.cpp line:2504\r\nAbortado (`core' generado)\r\n\r\nHow can I compile my code  in  Kaveri envrionment with rocm 1.3?"},"comment":{"url":"https://api.github.com/repos/RadeonOpenCompute/hcc/issues/comments/261829185","html_url":"https://github.com/RadeonOpenCompute/hcc/issues/170#issuecomment-261829185","issue_url":"https://api.github.com/repos/RadeonOpenCompute/hcc/issues/170","id":261829185,"user":{"login":"bshaozi","id":4568364,"avatar_url":"https://avatars.githubusercontent.com/u/4568364?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaozi","html_url":"https://github.com/bshaozi","followers_url":"https://api.github.com/users/bshaozi/followers","following_url":"https://api.github.com/users/bshaozi/following{/other_user}","gists_url":"https://api.github.com/users/bshaozi/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaozi/subscriptions","organizations_url":"https://api.github.com/users/bshaozi/orgs","repos_url":"https://api.github.com/users/bshaozi/repos","events_url":"https://api.github.com/users/bshaozi/events{/privacy}","received_events_url":"https://api.github.com/users/bshaozi/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T02:39:33Z","updated_at":"2016-11-21T02:39:33Z","body":"Thank you for the reply. I had added the '--amdgpu-target=AMD:AMDGPU:8:0:1' in  my compile option.  But when I run the program, it still  crash and return error information as follows:\r\n\r\n### HCC STATUS_CHECK Error: HSA_STATUS_ERROR_INCOMPATIBLE_ARGUMENTS (0x100d) at file:/home/scchan/code/github/radeonopencompute/hcc.1.3/hcc/lib/hsa/mcwamp_hsa.cpp line:2504\r\nAborted (core dumped)\r\n \r\nFollows is my compile command(in ROCM 1.3) ,it doesn't work:\r\n/opt/rocm/hcc/bin/hcc   `/opt/rocm/hcc/bin/hcc-config --cxxflags  --ldflags`  --amdgpu-target=AMD:AMDGPU:8:0:1    xxx.cpp -o xxx\r\n\r\nBefore I update ROCM to 1.3. My compile command as follows and it works well:\r\n/opt/rocm/hcc-hsail/bin/hcc   `/opt/rocm/hcc-hsail/bin/hcc-config --cxxflags  --ldflags`  -I /opt/rocm/hcc-hsail/include/ xxx.cpp  -o xxx\r\n\r\nWhat should I do to fix it?\r\n\r\nThanks.\r\n\r\n\r\nhaochen@multicorewareinc.com\r\n \r\nFrom: Wen-Heng (Jack) Chung\r\nDate: 2016-11-19 02:23\r\nTo: RadeonOpenCompute/hcc\r\nCC: bshaozi; Author\r\nSubject: Re: [RadeonOpenCompute/hcc] How to use hcc_hsail in Rocm 1.3 (#170)\r\ncould you try add \"--amdgpu-target=AMD:AMDGPU:8:0:1\" in your compile option? The default compiler backend now generates GCN instructions instead of HSAIL by default, and --amdgpu-target= let's you specify GCN ISA for your APU or dGPU.\r\n—\r\nYou are receiving this because you authored the thread.\r\nReply to this email directly, view it on GitHub, or mute the thread.\r\n"}}
{"actor":{"display_login":"bshaozi"}}