{"action":"created","issue":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/818","repository_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose","labels_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/818/comments","events_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/818/events","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/818","id":357745918,"node_id":"MDU6SXNzdWUzNTc3NDU5MTg=","number":818,"title":"[MacOS 10.13.6] compiled and ran predictions with OPENCL GPU_MODE","user":{"login":"carlovirtucio","id":3649574,"node_id":"MDQ6VXNlcjM2NDk1NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3649574?v=4","gravatar_id":"","url":"https://api.github.com/users/carlovirtucio","html_url":"https://github.com/carlovirtucio","followers_url":"https://api.github.com/users/carlovirtucio/followers","following_url":"https://api.github.com/users/carlovirtucio/following{/other_user}","gists_url":"https://api.github.com/users/carlovirtucio/gists{/gist_id}","starred_url":"https://api.github.com/users/carlovirtucio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlovirtucio/subscriptions","organizations_url":"https://api.github.com/users/carlovirtucio/orgs","repos_url":"https://api.github.com/users/carlovirtucio/repos","events_url":"https://api.github.com/users/carlovirtucio/events{/privacy}","received_events_url":"https://api.github.com/users/carlovirtucio/received_events","type":"User","site_admin":false},"labels":[{"id":782296339,"node_id":"MDU6TGFiZWw3ODIyOTYzMzk=","url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/labels/Mac%20OS","name":"Mac OS","color":"f293a8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-06T17:05:40Z","updated_at":"2018-09-07T16:40:48Z","closed_at":null,"author_association":"NONE","body":"### Posting rules\r\n1. **Fill** the **Your System Configuration section (all of it!)** if you have some kind of error or performance question.\r\n2. **No** questions about **training**. OpenPose only implements testing.\r\n3. **No** questions about **3rd party libraries**.\r\n    - Caffe errors/issues, check [Caffe](http://caffe.berkeleyvision.org) documentation.\r\n    - CUDA check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, and then re-compiling (or re-installing) OpenPose. Otherwise, check for help in CUDA forums.\r\n    - OpenCV errors: Install the default/pre-compiled OpenCV or check for online help.\r\n4. **No duplicated** posts.\r\n5. **No** posts about **questions already answered / clearly explained in** the **documentation** (e.g. **no more low-speed nor out-of-memory questions**).\r\n6. Set a **proper issue title**: add the Ubuntu/Windows word and be specific (e.g. do not simple call it: `Compile error`).\r\n7. Only English comments.\r\nIssues/comments which do not follow these rules will be **ignored or removed** with no further clarification.\r\n\r\n### Issue Summary\r\n\r\nCompiled and ran predictions on AMD GPU version in MacOS 10.13.6 successfully (with minor mutex lock error at the end; but output is still successfully written)\r\n\r\nYou can use a GPU version in MacOS with the following steps:\r\n1. Install `viennacl` using `brew install viennacl`\r\n2. Compile in CMake with `OPENCL` GPU_MODE\r\n3. When running `openpose.bin`, make sure to run with `--num_gpu_start 1` to avoid `Error: ViennaCL: FATAL ERROR: CL_INVALID_WORK_GROUP_SIZE`\r\n\r\nUsed this command (also works for images):\r\n\r\n### Executed Command (if any)\r\n\r\n- `./build/examples/openpose/openpose.bin --video examples/media/video.mp4 --num_gpu_start 1`\r\n(video.mp4 is my own 2-second video)\r\n\r\n### OpenPose Output (if any)\r\n\r\n```\r\nStarting OpenPose demo...\r\nAuto-detecting all available GPUs... Detected 2 GPU(s), using 1 of them starting at GPU 1.\r\nStarting thread(s)...\r\nKernel: resizeAndMergeFullKernel Type: float GPU: 1 built successfully\r\nKernel: resizeAndMergeKernel Type: float GPU: 1 built successfully\r\nKernel: resizeAndAddKernel Type: float GPU: 1 built successfully\r\nKernel: resizeAndAverageKernel Type: float GPU: 1 built successfully\r\nKernel: zeroBufferKernel Type: float GPU: 1 built successfully\r\nKernel: copyBufferKernel Type: float GPU: 1 built successfully\r\nKernel: nmsRegisterKernel Type: float GPU: 1 built successfully\r\nKernel: nmsWriteKernel Type: float GPU: 1 built successfully\r\nOpenPose demo successfully finished. Total time: 481.331713 seconds.\r\nlibc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument\r\nAbort trap: 6\r\n```\r\n\r\n### Type of Issue\r\n\r\n- Test result report\r\n\r\n### Your System Configuration\r\n1. **OpenPose version**: Latest GitHub code (v1.4.0)\r\n\r\n2. **General configuration**:\r\n    - **Installation mode**: Standard installation steps for MacOS (except stated `OPENCL` `GPU_MODE`)\r\n    - **Operating system**: MacOS 10.13.6\r\n    - **Release or Debug mode**?: release\r\n    - Compiler (GCC):\r\n        - Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\n        - Apple LLVM version 9.1.0 (clang-902.0.39.2)\r\n        - Target: x86_64-apple-darwin17.7.0\r\n        - Thread model: posix\r\n\r\n3. **Non-default settings**:\r\n    - **3-D Reconstruction module added**?: no\r\n    - Any other custom CMake configuration with respect to the default version?: `GPU_MODE=OPENCL`\r\n\r\n4. **3rd-party software**:\r\n    - **Caffe version**: Default from OpenPose\r\n    - **CMake version**: 3.12.1\r\n    - **OpenCV version**: 3.4.2\r\n\r\n5. If **GPU mode** issue:\r\n    - **CUDA version**: NA\r\n    - **cuDNN version**: NA\r\n    - **GPU model**: Intel UHD Graphics 630 (Using `Radeon Pro 560X` causes `INVALID_WORK_GROUP_SIZE` error in ViennaCL)\r\n\r\n6. If **CPU-only mode** issue:\r\n    - **CPU brand & model**: Intel Core i9-8950HK\r\n    - Total **RAM memory** available: 32GB\r\n\r\n7. If **Python** API:\r\n    - **Python version**: 3.7\r\n    - **Numpy version**:  1.15.1\r\n\r\n8. If **Windows** system:\r\n    - NA\r\n\r\n9. If **speed performance** issue:\r\n    - NA\r\n\r\nNot sure if this should be a GitHub issue, but posting it here to share."},"comment":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/comments/419497377","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/818#issuecomment-419497377","issue_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/818","id":419497377,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTQ5NzM3Nw==","user":{"login":"carlovirtucio","id":3649574,"node_id":"MDQ6VXNlcjM2NDk1NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3649574?v=4","gravatar_id":"","url":"https://api.github.com/users/carlovirtucio","html_url":"https://github.com/carlovirtucio","followers_url":"https://api.github.com/users/carlovirtucio/followers","following_url":"https://api.github.com/users/carlovirtucio/following{/other_user}","gists_url":"https://api.github.com/users/carlovirtucio/gists{/gist_id}","starred_url":"https://api.github.com/users/carlovirtucio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlovirtucio/subscriptions","organizations_url":"https://api.github.com/users/carlovirtucio/orgs","repos_url":"https://api.github.com/users/carlovirtucio/repos","events_url":"https://api.github.com/users/carlovirtucio/events{/privacy}","received_events_url":"https://api.github.com/users/carlovirtucio/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T16:40:48Z","updated_at":"2018-09-07T16:40:48Z","author_association":"NONE","body":"@soulslicer ohh sorry! I ran it again with those flags:\r\n\r\nImage:\r\n![test](https://user-images.githubusercontent.com/3649574/45231672-bc4b6200-b307-11e8-9c13-e6e9b5de5247.png)\r\n\r\nCommand:\r\n```\r\n./build/examples/openpose/openpose.bin --image_dir 64/ --num_gpu_start 0 -num_gpu 1 --net_resolution 256x256 --disable_multi_thread\r\n\r\n```\r\n\r\nStacktrace:\r\n```\r\n(env) computer:openpose computer$ ./build/examples/openpose/openpose.bin --image_dir 64/ --num_gpu_start 0 -num_gpu 1 --net_resolution 256x256 --disable_multi_thread\r\nStarting OpenPose demo...\r\nStarting thread(s)...\r\nViennaCL: FATAL ERROR: Kernel start failed for 'conv_forward'.\r\n\r\nError:\r\nViennaCL: FATAL ERROR: CL_INVALID_WORK_GROUP_SIZE \r\n The supplied work group size is invalid. If you have set this value manually, please reconsider your choice.\r\nIf you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:\r\n * Operating System\r\n * Which OpenCL implementation (AMD, NVIDIA, etc.)\r\n * ViennaCL version\r\nMany thanks in advance!\r\n\r\nComing from:\r\n- /Users/computer/Desktop/dev/openpose/src/openpose/net/netCaffe.cpp:forwardPass():227\r\n- /Users/computer/Desktop/dev/openpose/src/openpose/pose/poseExtractorCaffe.cpp:forwardPass():315\r\n- /Users/computer/Desktop/dev/openpose/src/openpose/pose/poseExtractor.cpp:forwardPass():52\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/pose/wPoseExtractor.hpp:work():100\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/subThread.hpp:workTWorkers():135\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/subThreadQueueInOut.hpp:work():96\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/thread.hpp:threadFunction():204\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/thread.hpp:exec():129\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/threadManager.hpp:exec():186\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/wrapper/wrapper.hpp:exec():1072\r\n- /Users/computer/Desktop/dev/openpose/examples/openpose/openpose.cpp:openPoseDemo():372\r\nlibc++abi.dylib: terminating with uncaught exception of type std::runtime_error: \r\nError:\r\nViennaCL: FATAL ERROR: CL_INVALID_WORK_GROUP_SIZE \r\n The supplied work group size is invalid. If you have set this value manually, please reconsider your choice.\r\nIf you think that this is a bug in ViennaCL, please report it at viennacl-support@lists.sourceforge.net and supply at least the following information:\r\n * Operating System\r\n * Which OpenCL implementation (AMD, NVIDIA, etc.)\r\n * ViennaCL version\r\nMany thanks in advance!\r\n\r\nComing from:\r\n- /Users/computer/Desktop/dev/openpose/src/openpose/net/netCaffe.cpp:forwardPass():227\r\n- /Users/computer/Desktop/dev/openpose/src/openpose/pose/poseExtractorCaffe.cpp:forwardPass():315\r\n- /Users/computer/Desktop/dev/openpose/src/openpose/pose/poseExtractor.cpp:forwardPass():52\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/pose/wPoseExtractor.hpp:work():100\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/subThread.hpp:workTWorkers():135\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/subThreadQueueInOut.hpp:work():96\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/thread.hpp:threadFunction():204\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/thread.hpp:exec():129\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/thread/threadManager.hpp:exec():186\r\n- /Users/computer/Desktop/dev/openpose/include/openpose/wrapper/wrapper.hpp:exec():1072\r\n- /Users/computer/Desktop/dev/openpose/examples/openpose/openpose.cpp:openPoseDemo():372\r\n\r\nAbort trap: 6\r\n```"}}
{"actor":{"display_login":"carlovirtucio"}}