{"action":"created","issue":{"url":"https://api.github.com/repos/hughperkins/DeepCL/issues/82","repository_url":"https://api.github.com/repos/hughperkins/DeepCL","labels_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/82/comments","events_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/82/events","html_url":"https://github.com/hughperkins/DeepCL/issues/82","id":168141344,"number":82,"title":"DeepCL unit tests failing on vivante gc200","user":{"login":"Mezzano","id":3432363,"avatar_url":"https://avatars.githubusercontent.com/u/3432363?v=3","gravatar_id":"","url":"https://api.github.com/users/Mezzano","html_url":"https://github.com/Mezzano","followers_url":"https://api.github.com/users/Mezzano/followers","following_url":"https://api.github.com/users/Mezzano/following{/other_user}","gists_url":"https://api.github.com/users/Mezzano/gists{/gist_id}","starred_url":"https://api.github.com/users/Mezzano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mezzano/subscriptions","organizations_url":"https://api.github.com/users/Mezzano/orgs","repos_url":"https://api.github.com/users/Mezzano/repos","events_url":"https://api.github.com/users/Mezzano/events{/privacy}","received_events_url":"https://api.github.com/users/Mezzano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-07-28T16:39:13Z","updated_at":"2016-08-01T10:02:45Z","closed_at":null,"body":"Hello,\r\n\r\nwe're trying to activate and use DeepCL on a GPU vivante gc200 on imx6q board ARM 7 with linux 3.10.31 and distribution opensuse 13.1.\r\n\r\nThe GPU is opencl 1.1 EP enabled.\r\n\r\nDeepCL is correctly built but when we try deepcl_unittests we face the following problem:\r\n\r\ndlopen failed: /usr/lib/libOpenCL.so: undefined symbol: gcoCL_DestroyTexture\r\nCouldnt find OpenCL-enabled GPU: OpenCL library not found\r\n\r\nWith command nm, we see that libOpenCL.so has undefined symbols for gc objects.\r\n\r\nCan you help?"},"comment":{"url":"https://api.github.com/repos/hughperkins/DeepCL/issues/comments/236540276","html_url":"https://github.com/hughperkins/DeepCL/issues/82#issuecomment-236540276","issue_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/82","id":236540276,"user":{"login":"Mezzano","id":3432363,"avatar_url":"https://avatars.githubusercontent.com/u/3432363?v=3","gravatar_id":"","url":"https://api.github.com/users/Mezzano","html_url":"https://github.com/Mezzano","followers_url":"https://api.github.com/users/Mezzano/followers","following_url":"https://api.github.com/users/Mezzano/following{/other_user}","gists_url":"https://api.github.com/users/Mezzano/gists{/gist_id}","starred_url":"https://api.github.com/users/Mezzano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mezzano/subscriptions","organizations_url":"https://api.github.com/users/Mezzano/orgs","repos_url":"https://api.github.com/users/Mezzano/repos","events_url":"https://api.github.com/users/Mezzano/events{/privacy}","received_events_url":"https://api.github.com/users/Mezzano/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T10:02:45Z","updated_at":"2016-08-01T10:02:45Z","body":"Hi Hugues,\r\n\r\nthanks again for taking time to help us, I tried your code and compiled with g++ 4.8.5. As you can see, I needed to add cstlib and cstio headers. And afterwards link with -lGAL. I finally get a runtime error:\r\n\r\n`imx6demo:~/opencl/simple_opencl # g++ -o simple simple.cpp -lOpenCL\r\nsimple.cpp: In function ‘int main(int, char**)’:\r\nsimple.cpp:90:19: error: ‘exit’ was not declared in this scope\r\n            exit(-1);\r\n                   ^\r\nimx6demo:~/opencl/simple_opencl # ls\r\nsimple.cpp\r\nimx6demo:~/opencl/simple_opencl # vi simple.cpp \r\nimx6demo:~/opencl/simple_opencl # g++ -o simple simple.cpp -lOpenCL\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcKERNEL_FUNCTION_GetName'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_Construct'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_CreateSignal'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetConstantMemorySize'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_AtomIncrement'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_Allocate'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcUNIFORM_GetFlags'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_SubmitSignal'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_Flush'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcKERNEL_FUNCTION_GetProperty'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetPrivateMemorySize'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcKERNEL_FUNCTION_GetPropertyCount'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_StrCmp'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcInvokeThreadWalker'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_AtomDestroy'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_GetCurrentProcessID'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_CreateMutex'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_Print'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_FreeLibrary'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_AtomConstruct'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_Free'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetAttribute'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_GetTime'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_FreeMemory'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetAttributeCount'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_DeleteMutex'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_CreateTexture'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcUNIFORM_SetValue'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetUniform'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_DestroySignal'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_ReleaseMutex'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_AllocateMemory'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcUNIFORM_SetValueF'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_SaveEx'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcLinkKernel'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_LoadLibrary'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_WaitSignal'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoSURF_Unlock'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_CloseThread'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetUniformCount'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_GetProcAddress'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_DestroyTexture'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_QueryDeviceInfo'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetKernelFunctionByName'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_Destroy'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetLocalMemorySize'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_Delay'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcGetUserDebugOption'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcUNIFORM_GetFormat'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_InitializeHardware'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_FlushSurface'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_AcquireMutex'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcUNIFORM_GetType'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoHAL_Commit'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcLoadKernel'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_LoadEx'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_CreateThread'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetKernelFunction'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_LoadKernel'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoCL_FlushMemory'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoSURF_Lock'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcoOS_StrCopySafe'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcSHADER_GetKernelFunctionCount'\r\n/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcATTRIBUTE_GetName'\r\ncollect2: error: ld returned 1 exit status\r\nimx6demo:~/opencl/simple_opencl # g++ -o simple simple.cpp -lOpenCL -lGAL\r\nimx6demo:~/opencl/simple_opencl # ls\r\nsimple  simple.cpp\r\nimx6demo:~/opencl/simple_opencl # ./simple \r\nterminate called after throwing an instance of 'std::runtime_error'\r\n  what():  Error: -54\r\nAborted\r\nimx6demo:~/opencl/simple_opencl # \r\n`"}}
{"actor":{"display_login":"Mezzano"}}