{"action":"created","issue":{"url":"https://api.github.com/repos/GPUE-group/GPUE/issues/14","repository_url":"https://api.github.com/repos/GPUE-group/GPUE","labels_url":"https://api.github.com/repos/GPUE-group/GPUE/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/GPUE-group/GPUE/issues/14/comments","events_url":"https://api.github.com/repos/GPUE-group/GPUE/issues/14/events","html_url":"https://github.com/GPUE-group/GPUE/issues/14","id":377199993,"node_id":"MDU6SXNzdWUzNzcxOTk5OTM=","number":14,"title":"Difficulties with the build process","user":{"login":"markbasham","id":822780,"node_id":"MDQ6VXNlcjgyMjc4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/822780?v=4","gravatar_id":"","url":"https://api.github.com/users/markbasham","html_url":"https://github.com/markbasham","followers_url":"https://api.github.com/users/markbasham/followers","following_url":"https://api.github.com/users/markbasham/following{/other_user}","gists_url":"https://api.github.com/users/markbasham/gists{/gist_id}","starred_url":"https://api.github.com/users/markbasham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbasham/subscriptions","organizations_url":"https://api.github.com/users/markbasham/orgs","repos_url":"https://api.github.com/users/markbasham/repos","events_url":"https://api.github.com/users/markbasham/events{/privacy}","received_events_url":"https://api.github.com/users/markbasham/received_events","type":"User","site_admin":false},"labels":[{"id":1116064278,"node_id":"MDU6TGFiZWwxMTE2MDY0Mjc4","url":"https://api.github.com/repos/GPUE-group/GPUE/labels/Usability%20Issue","name":"Usability Issue","color":"deadff","default":false}],"state":"open","locked":false,"assignee":{"login":"mlxd","id":858615,"node_id":"MDQ6VXNlcjg1ODYxNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/858615?v=4","gravatar_id":"","url":"https://api.github.com/users/mlxd","html_url":"https://github.com/mlxd","followers_url":"https://api.github.com/users/mlxd/followers","following_url":"https://api.github.com/users/mlxd/following{/other_user}","gists_url":"https://api.github.com/users/mlxd/gists{/gist_id}","starred_url":"https://api.github.com/users/mlxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlxd/subscriptions","organizations_url":"https://api.github.com/users/mlxd/orgs","repos_url":"https://api.github.com/users/mlxd/repos","events_url":"https://api.github.com/users/mlxd/events{/privacy}","received_events_url":"https://api.github.com/users/mlxd/received_events","type":"User","site_admin":false},"assignees":[{"login":"mlxd","id":858615,"node_id":"MDQ6VXNlcjg1ODYxNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/858615?v=4","gravatar_id":"","url":"https://api.github.com/users/mlxd","html_url":"https://github.com/mlxd","followers_url":"https://api.github.com/users/mlxd/followers","following_url":"https://api.github.com/users/mlxd/following{/other_user}","gists_url":"https://api.github.com/users/mlxd/gists{/gist_id}","starred_url":"https://api.github.com/users/mlxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlxd/subscriptions","organizations_url":"https://api.github.com/users/mlxd/orgs","repos_url":"https://api.github.com/users/mlxd/repos","events_url":"https://api.github.com/users/mlxd/events{/privacy}","received_events_url":"https://api.github.com/users/mlxd/received_events","type":"User","site_admin":false},{"login":"leios","id":4985692,"node_id":"MDQ6VXNlcjQ5ODU2OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/4985692?v=4","gravatar_id":"","url":"https://api.github.com/users/leios","html_url":"https://github.com/leios","followers_url":"https://api.github.com/users/leios/followers","following_url":"https://api.github.com/users/leios/following{/other_user}","gists_url":"https://api.github.com/users/leios/gists{/gist_id}","starred_url":"https://api.github.com/users/leios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leios/subscriptions","organizations_url":"https://api.github.com/users/leios/orgs","repos_url":"https://api.github.com/users/leios/repos","events_url":"https://api.github.com/users/leios/events{/privacy}","received_events_url":"https://api.github.com/users/leios/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-11-04T22:04:46Z","updated_at":"2018-11-05T06:33:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nIm trying to build GPUE with the instructions provided, but i get the problems as shown below  I have tried to use the standard makefile, but I also get the same issues, and I cannot fix them up by adding the -std=gnu++0x arguments.\r\n\r\nI do have other gcc compilers avalilable, but this is the standard RHEL6 one which is the system that i have access to a GPU card on, and if i go above 5 there is an error.\r\n\r\nHope this helps\r\n\r\nMark\r\n\r\n> git clone https://github.com/GPUE-group/GPUE.git\r\nInitialized empty Git repository in /dls/tmp/ssg37927/test/GPUE/.git/\r\nremote: Enumerating objects: 66, done.\r\nremote: Counting objects: 100% (66/66), done.\r\nremote: Compressing objects: 100% (46/46), done.\r\nremote: Total 2705 (delta 33), reused 45 (delta 20), pack-reused 2639\r\nReceiving objects: 100% (2705/2705), 3.83 MiB | 650 KiB/s, done.\r\nResolving deltas: 100% (2057/2057), done.\r\n\r\n> [ssg37927@cs04r-sc-com14-09 test]$ module load cuda/8.0\r\n\r\n> [ssg37927@cs04r-sc-com14-09 test]$ nvcc --version\r\nnvcc: NVIDIA (R) Cuda compiler driver\r\nCopyright (c) 2005-2016 NVIDIA Corporation\r\nBuilt on Tue_Jan_10_13:22:03_CST_2017\r\nCuda compilation tools, release 8.0, V8.0.61\r\n\r\n> [ssg37927@cs04r-sc-com14-09 test]$ gcc --version\r\ngcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)\r\nCopyright (C) 2010 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n\r\n> [ssg37927@cs04r-sc-com14-09 test]$ module load cmake\r\n\r\n> [ssg37927@cs04r-sc-com14-09 test]$ cmake --version\r\ncmake version 3.12.0\r\nCMake suite maintained and supported by Kitware (kitware.com/cmake).\r\n\r\n> [ssg37927@cs04r-sc-com14-09 test]$ cd GPUE/\r\n\r\n> [ssg37927@cs04r-sc-com14-09 GPUE]$ cmake .\r\n-- The CXX compiler identification is GNU 4.4.7\r\n-- The CUDA compiler identification is NVIDIA 8.0.61\r\n-- Check for working CXX compiler: /usr/bin/c++\r\n-- Check for working CXX compiler: /usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Check for working CUDA compiler: /dls_sw/apps/cuda/8.0/bin/nvcc\r\n-- Check for working CUDA compiler: /dls_sw/apps/cuda/8.0/bin/nvcc -- works\r\n-- Detecting CUDA compiler ABI info\r\n-- Detecting CUDA compiler ABI info - done\r\n-- Looking for C++ include pthread.h\r\n-- Looking for C++ include pthread.h - found\r\n-- Looking for pthread_create\r\n-- Looking for pthread_create - not found\r\n-- Looking for pthread_create in pthreads\r\n-- Looking for pthread_create in pthreads - not found\r\n-- Looking for pthread_create in pthread\r\n-- Looking for pthread_create in pthread - found\r\n-- Found Threads: TRUE\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /dls/tmp/ssg37927/test/GPUE\r\n\r\n> [ssg37927@cs04r-sc-com14-09 GPUE]$ make\r\nScanning dependencies of target unitTest\r\n[  4%] Building CUDA object CMakeFiles/unitTest.dir/src/unit_test.cu.o\r\nnvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).\r\nIn file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/unordered_map:35,\r\n                 from /dls/tmp/ssg37927/test/GPUE/src/../include/ds.h:24,\r\n                 from /dls/tmp/ssg37927/test/GPUE/src/unit_test.cu:1:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.\r\nmake[2]: *** [CMakeFiles/unitTest.dir/src/unit_test.cu.o] Error 1\r\nmake[1]: *** [CMakeFiles/unitTest.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n\r\n> [ssg37927@cs04r-sc-com14-09 GPUE]$ make\r\n[  4%] Building CUDA object CMakeFiles/unitTest.dir/src/unit_test.cu.o\r\nnvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).\r\nIn file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/unordered_map:35,\r\n                 from /dls/tmp/ssg37927/test/GPUE/src/../include/ds.h:24,\r\n                 from /dls/tmp/ssg37927/test/GPUE/src/unit_test.cu:1:\r\n/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.\r\nmake[2]: *** [CMakeFiles/unitTest.dir/src/unit_test.cu.o] Error 1\r\nmake[1]: *** [CMakeFiles/unitTest.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n"},"comment":{"url":"https://api.github.com/repos/GPUE-group/GPUE/issues/comments/435768661","html_url":"https://github.com/GPUE-group/GPUE/issues/14#issuecomment-435768661","issue_url":"https://api.github.com/repos/GPUE-group/GPUE/issues/14","id":435768661,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTc2ODY2MQ==","user":{"login":"leios","id":4985692,"node_id":"MDQ6VXNlcjQ5ODU2OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/4985692?v=4","gravatar_id":"","url":"https://api.github.com/users/leios","html_url":"https://github.com/leios","followers_url":"https://api.github.com/users/leios/followers","following_url":"https://api.github.com/users/leios/following{/other_user}","gists_url":"https://api.github.com/users/leios/gists{/gist_id}","starred_url":"https://api.github.com/users/leios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leios/subscriptions","organizations_url":"https://api.github.com/users/leios/orgs","repos_url":"https://api.github.com/users/leios/repos","events_url":"https://api.github.com/users/leios/events{/privacy}","received_events_url":"https://api.github.com/users/leios/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T06:33:20Z","updated_at":"2018-11-05T06:33:20Z","author_association":"MEMBER","body":"@mgalloy I am updating my mac right now (it looks to be a problem with some command line tools, so I am getting the latest versions of everything).\r\n\r\nI think this is a general CUDA error and not a problem with GPUE building. Can you compile any CUDA code? For example:\r\n\r\n`nvcc file.cu`\r\n\r\n```cpp\r\n#include <iostream>\r\n#include <math.h>\r\n\r\n__global__ void vecAdd(double *a, double *b, double *c, int n){\r\n\r\n    // First we need to find our global threadID\r\n    int id = blockIdx.x*blockDim.x + threadIdx.x;\r\n\r\n    // Make sure we are not out of range\r\n    if (id < n){\r\n        c[id] = a[id] + b[id];\r\n    }\r\n}\r\n\r\nint main(){\r\n\r\n    // size of vectors\r\n    int n = 1000;\r\n\r\n    // Host vectors\r\n    double *h_a, *h_b, *h_c;\r\n\r\n    // Device vectors\r\n    double *d_a, *d_b, *d_c;\r\n\r\n    // allocating space on host and device\r\n    h_a = (double*)malloc(sizeof(double)*n);\r\n    h_b = (double*)malloc(sizeof(double)*n);\r\n    h_c = (double*)malloc(sizeof(double)*n);\r\n\r\n    // Allocating space on GPU\r\n    cudaMalloc(&d_a, sizeof(double)*n);\r\n    cudaMalloc(&d_b, sizeof(double)*n);\r\n    cudaMalloc(&d_c, sizeof(double)*n);\r\n\r\n    //initializing host vectors\r\n    for (int i = 0; i < n; ++i){\r\n        h_a[i] = 1;\r\n        h_b[i] = 1;\r\n    }\r\n\r\n    // copying these components to the GPU\r\n    cudaMemcpy(d_a, h_a, sizeof(double)*n, cudaMemcpyHostToDevice);\r\n    cudaMemcpy(d_b, h_b, sizeof(double)*n, cudaMemcpyHostToDevice);\r\n\r\n    // Creating blocks and grid ints\r\n    int threads, grid;\r\n\r\n    threads = 64;\r\n    grid = (int)ceil((float)n/threads);\r\n\r\n    vecAdd<<<grid, threads>>>(d_a, d_b, d_c, n);\r\n\r\n    // Now to copy c back\r\n    cudaMemcpy(h_c, d_c, sizeof(double)*n, cudaMemcpyDeviceToHost);\r\n\r\n    double sum = 0;\r\n    for (int i = 0; i < n; ++i){\r\n        sum += h_c[i];\r\n    }\r\n\r\n    std::cout << \"Sum is: \" << sum << '\\n';\r\n\r\n    // Release memory\r\n    cudaFree(d_a);\r\n    cudaFree(d_b);\r\n    cudaFree(d_c);\r\n\r\n    free(h_a);\r\n    free(h_b);\r\n    free(h_c);\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"leios"}}