{"action":"created","issue":{"url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk/issues/131","repository_url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk","labels_url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk/issues/131/comments","events_url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk/issues/131/events","html_url":"https://github.com/codeplaysoftware/computecpp-sdk/issues/131","id":343579892,"node_id":"MDU6SXNzdWUzNDM1Nzk4OTI=","number":131,"title":"cmake error for samples","user":{"login":"dcolley","id":1845970,"node_id":"MDQ6VXNlcjE4NDU5NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/1845970?v=4","gravatar_id":"","url":"https://api.github.com/users/dcolley","html_url":"https://github.com/dcolley","followers_url":"https://api.github.com/users/dcolley/followers","following_url":"https://api.github.com/users/dcolley/following{/other_user}","gists_url":"https://api.github.com/users/dcolley/gists{/gist_id}","starred_url":"https://api.github.com/users/dcolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcolley/subscriptions","organizations_url":"https://api.github.com/users/dcolley/orgs","repos_url":"https://api.github.com/users/dcolley/repos","events_url":"https://api.github.com/users/dcolley/events{/privacy}","received_events_url":"https://api.github.com/users/dcolley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T10:41:21Z","updated_at":"2018-07-23T10:55:56Z","closed_at":null,"author_association":"NONE","body":"*[c++ newbie alert..!]* Any guidance would be appreciated... \r\n\r\nI'm trying to follow the https://developer.codeplay.com/computecppce/latest/getting-started-guide\r\n\r\ncomputecpp is available in `/usr/local/computecpp` and bin is in the PATH\r\ncomputecpp-sdk is available in `~/computecpp-sdk`\r\n\r\nI managed to build tensorflow and I can run the MNIST training example.\r\n```\r\n~/computecpp-sdk/build$ cat ~/.profile\r\n# SNIP UNRELATED LINES.\r\nexport ComputeCpp_ROOT_DIR=/usr/local/computecpp\r\nexport COMPUTECPP_DIR=/usr/local/computecpp\r\nexport LD_LIBRARY_PATH=/usr/local/computecpp/lib\r\nexport PATH=${PATH}:/usr/local/computecpp/bin\r\n```\r\n\r\nHowever, I can't seem to run the SYCL examples:\r\n```\r\n~/computecpp-sdk/build$ cmake ../ -DComputeCpp_ROOT_DIR=/usr/local/computecpp\r\n-- platform - your system can support ComputeCpp\r\n-- Found ComputeCpp: /usr/local/computecpp (found version \"CE ..\")\r\n-- compute++ flags - -O2;-mllvm;-inline-threshold=1000;-sycl;-intelspirmetadata;-sycl-target;spir64\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/derek/computecpp-sdk/build\r\n```\r\n\r\n```\r\n~/computecpp-sdk/build$ make\r\n[  1%] Building ComputeCpp integration header file /home/derek/computecpp-sdk/build/samples/simple-example-of-vectors/simple-example-of-vectors.cpp.sycl\r\nremark: [Computecpp:CC0027]: Some memcpy/memset intrinsics added by the llvm optimizer were replaced by serial functions. This is a workaround for OpenCL drivers that do not support those\r\n      intrinsics. This may impact performance, consider using -no-serial-memop. [-Rsycl-serial-memop]\r\n[  1%] Built target simple-example-of-vectors_simple-example-of-vectors.cpp_0_ih\r\n[  2%] Building CXX object samples/simple-example-of-vectors/CMakeFiles/simple-example-of-vectors.dir/simple-example-of-vectors.cpp.o\r\n[  4%] Linking CXX executable simple-example-of-vectors\r\n[  4%] Built target simple-example-of-vectors\r\n[  5%] Building ComputeCpp integration header file /home/derek/computecpp-sdk/build/samples/custom-device-selector/custom-device-selector.cpp.sycl\r\nremark: [Computecpp:CC0027]: Some memcpy/memset intrinsics added by the llvm optimizer were replaced by serial functions. This is a workaround for OpenCL drivers that do not support those\r\n      intrinsics. This may impact performance, consider using -no-serial-memop. [-Rsycl-serial-memop]\r\n[  5%] Built target custom-device-selector_custom-device-selector.cpp_0_ih\r\n[  7%] Building CXX object samples/custom-device-selector/CMakeFiles/custom-device-selector.dir/custom-device-selector.cpp.o\r\n[  8%] Linking CXX executable custom-device-selector\r\n[  8%] Built target custom-device-selector\r\n[ 10%] Building ComputeCpp integration header file /home/derek/computecpp-sdk/build/samples/tiled-convolution/tiled-convolution.cpp.sycl\r\n/home/derek/computecpp-sdk/samples/tiled-convolution/tiled-convolution.cpp:79:28: error: no member named 'get_global_id' in 'cl::sycl::nd_item<2>'; did you mean 'get_global'?\r\n    index_t id_m = item_id.get_global_id(0);  // global id with offset m\r\n                           ^~~~~~~~~~~~~\r\n                           get_global\r\n/usr/local/computecpp/include/SYCL/item.h:254:10: note: 'get_global' declared here\r\n  size_t get_global(unsigned int dimension) const {\r\n         ^\r\n/home/derek/computecpp-sdk/samples/tiled-convolution/tiled-convolution.cpp:80:28: error: no member named 'get_global_id' in 'cl::sycl::nd_item<2>'; did you mean 'get_global'?\r\n    index_t id_n = item_id.get_global_id(1);  // global id with offser n\r\n                           ^~~~~~~~~~~~~\r\n                           get_global\r\n/usr/local/computecpp/include/SYCL/item.h:254:10: note: 'get_global' declared here\r\n  size_t get_global(unsigned int dimension) const {\r\n         ^\r\n2 errors generated.\r\nsamples/tiled-convolution/CMakeFiles/tiled-convolution_tiled-convolution.cpp_0_ih.dir/build.make:61: recipe for target 'samples/tiled-convolution/tiled-convolution.cpp.sycl' failed\r\nmake[2]: *** [samples/tiled-convolution/tiled-convolution.cpp.sycl] Error 1\r\nCMakeFiles/Makefile2:383: recipe for target 'samples/tiled-convolution/CMakeFiles/tiled-convolution_tiled-convolution.cpp_0_ih.dir/all' failed\r\nmake[1]: *** [samples/tiled-convolution/CMakeFiles/tiled-convolution_tiled-convolution.cpp_0_ih.dir/all] Error 2\r\nMakefile:138: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\nOutput from computecpp_info:\r\n```\r\ncomputecpp_info\r\n********************************************************************************\r\n\r\nComputeCpp Info (CE ..)\r\n\r\n********************************************************************************\r\n\r\nToolchain information:\r\n\r\nGLIBC version: 2.23\r\nGLIBCXX: 20160609\r\nThis version of libstdc++ is supported.\r\n\r\n********************************************************************************\r\n\r\n\r\nDevice Info:\r\n\r\nDiscovered 2 devices matching:\r\n  platform    : <any>\r\n  device type : <any>\r\n\r\n--------------------------------------------------------------------------------\r\nDevice 0:\r\n\r\n  Device is supported                     : UNTESTED - Vendor not tested on this OS\r\n  CL_DEVICE_NAME                          : Ellesmere\r\n  CL_DEVICE_VENDOR                        : Advanced Micro Devices, Inc.\r\n  CL_DRIVER_VERSION                       : 2482.3\r\n  CL_DEVICE_TYPE                          : CL_DEVICE_TYPE_GPU\r\n--------------------------------------------------------------------------------\r\nDevice 1:\r\n\r\n  Device is supported                     : UNTESTED - Vendor not tested on this OS\r\n  CL_DEVICE_NAME                          : Ellesmere\r\n  CL_DEVICE_VENDOR                        : Advanced Micro Devices, Inc.\r\n  CL_DRIVER_VERSION                       : 2482.3\r\n  CL_DEVICE_TYPE                          : CL_DEVICE_TYPE_GPU\r\n--------------------------------------------------------------------------------\r\n\r\nIf you encounter problems when using any of these OpenCL devices, please consult\r\nthis website for known issues:\r\nhttps://computecpp.codeplay.com/releases/v../platform-support-notes\r\n\r\n********************************************************************************\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk/issues/comments/407018665","html_url":"https://github.com/codeplaysoftware/computecpp-sdk/issues/131#issuecomment-407018665","issue_url":"https://api.github.com/repos/codeplaysoftware/computecpp-sdk/issues/131","id":407018665,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzAxODY2NQ==","user":{"login":"rodburns","id":800194,"node_id":"MDQ6VXNlcjgwMDE5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/800194?v=4","gravatar_id":"","url":"https://api.github.com/users/rodburns","html_url":"https://github.com/rodburns","followers_url":"https://api.github.com/users/rodburns/followers","following_url":"https://api.github.com/users/rodburns/following{/other_user}","gists_url":"https://api.github.com/users/rodburns/gists{/gist_id}","starred_url":"https://api.github.com/users/rodburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodburns/subscriptions","organizations_url":"https://api.github.com/users/rodburns/orgs","repos_url":"https://api.github.com/users/rodburns/repos","events_url":"https://api.github.com/users/rodburns/events{/privacy}","received_events_url":"https://api.github.com/users/rodburns/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T10:55:56Z","updated_at":"2018-07-23T10:55:56Z","author_association":"CONTRIBUTOR","body":"Hi Derek, I think you need to update your ComputeCpp to the latest v0.9.1 and get the latest from GitHub. There were some interface changes (outlined in this [blog](https://www.codeplay.com/portal/07-20-18-computecpp-ce-0-9-1-release)) and I think you have a mismatch between the ComputeCpp version and the version of code in the SDK."}}
{"actor":{"display_login":"rodburns"}}