{"action":"opened","issue":{"url":"https://api.github.com/repos/VISIONAI/clouddream/issues/34","labels_url":"https://api.github.com/repos/VISIONAI/clouddream/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/VISIONAI/clouddream/issues/34/comments","events_url":"https://api.github.com/repos/VISIONAI/clouddream/issues/34/events","html_url":"https://github.com/VISIONAI/clouddream/issues/34","id":99925125,"number":34,"title":"Is it possible enable multithreading in deepdream function?","user":{"login":"sanket0007","id":6565602,"avatar_url":"https://avatars.githubusercontent.com/u/6565602?v=3","gravatar_id":"","url":"https://api.github.com/users/sanket0007","html_url":"https://github.com/sanket0007","followers_url":"https://api.github.com/users/sanket0007/followers","following_url":"https://api.github.com/users/sanket0007/following{/other_user}","gists_url":"https://api.github.com/users/sanket0007/gists{/gist_id}","starred_url":"https://api.github.com/users/sanket0007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanket0007/subscriptions","organizations_url":"https://api.github.com/users/sanket0007/orgs","repos_url":"https://api.github.com/users/sanket0007/repos","events_url":"https://api.github.com/users/sanket0007/events{/privacy}","received_events_url":"https://api.github.com/users/sanket0007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-09T20:08:58Z","updated_at":"2015-08-09T20:08:58Z","closed_at":null,"body":"I've noticed that the actual deepdream function that does the work actually runs on a single thread. So no matter how powerful multicore processor you got, it will only use a very small portion of it.\r\nI am a newbie in this field, can someone tell if its possible to have a multithreaded function ?\r\n\r\nI executed htop inside the compute container and i got this... notice only core 1 is used and others are idle.\r\n\r\n```\r\n  1  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]     5  [                                                                     0.0%]\r\n  2  [                                                                     0.0%]     6  [                                                                     0.0%]\r\n  3  [                                                                     0.0%]     7  [                                                                     0.0%]\r\n  4  [                                                                     0.0%]     8  [                                                                     0.0%]\r\n  Mem[|||||||||||||||||||||||||||||||||||||||||||||||||             1140/2001MB]     Tasks: 7, 1 thr; 2 running\r\n  Swp[|||||||||||||||||                                               103/460MB]     Load average: 1.17 1.06 0.87 \r\n                                                                                     Uptime: 05:00:11\r\n\r\n  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command\r\n  528 root       20   0 1633M 1037M 42900 R 100. 51.8  0:42.06 python deepdream.py\r\n  544 root       20   0 23020  3292  2632 R  0.7  0.2  0:00.01 htop\r\n    1 root       20   0 17960     0     0 S  0.0  0.0  0:00.07 /bin/bash -c cd /opt/deepdream && ./process_images.sh 2>&1 > log.html\r\n    6 root       20   0 17964     0     0 S  0.0  0.0  0:00.00 /bin/bash ./process_images.sh\r\n    7 root       20   0 17980     0     0 S  0.0  0.0  0:00.00 /bin/bash ./process_images_once.sh\r\n    9 root       20   0 17984  1916  1784 S  0.0  0.1  0:00.04 /bin/bash ./process_images_once.sh\r\n  529 root       20   0 1633M 1037M 42900 S  0.0 51.8  0:00.00 python deepdream.py\r\n  530 root       20   0 18168  3300  2844 S  0.0  0.2  0:00.09 bash\r\n\r\n\r\n\r\n\r\n\r\nF1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit\r\n```\r\n"}}