ItamarRocha / binary-bot

Project of AI class at UFPB
114 stars 84 forks source link

Execução do arquivo testing.py fica travada com o uso de GPU #10

Closed banana-soldier closed 4 years ago

banana-soldier commented 4 years ago

Na tentativa de execução utilizando o processamento da GPU o log abaixo é gerado e nada mais acontece. Algum passo a mais é necessário para testar com a GPU?

***Testei em um Mac e foi possível rodar o projeto e testar com sucesso.

Teste realizado em um Win10 com GPU

PS D:\binary-bot> python .\testing.py 2020-07-17 16:31:11.051098: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll 2020-07-17 16:31:12.130954: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll 2020-07-17 16:31:12.199665: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:01:00.0 name: GeForce GTX 1060 6GB computeCapability: 6.1 coreClock: 1.7085GHz coreCount: 10 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 178.99GiB/s 2020-07-17 16:31:12.204331: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll 2020-07-17 16:31:12.209374: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll 2020-07-17 16:31:12.213760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll 2020-07-17 16:31:12.216753: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll 2020-07-17 16:31:12.222277: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll 2020-07-17 16:31:12.226835: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll 2020-07-17 16:31:12.235584: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll 2020-07-17 16:31:12.238806: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2020-07-17 16:31:12.240900: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2020-07-17 16:31:12.249238: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x217cf6a8c70 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2020-07-17 16:31:12.252842: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2020-07-17 16:31:12.255264: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:01:00.0 name: GeForce GTX 1060 6GB computeCapability: 6.1 coreClock: 1.7085GHz coreCount: 10 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 178.99GiB/s 2020-07-17 16:31:12.259884: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll 2020-07-17 16:31:12.262219: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll 2020-07-17 16:31:12.264539: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll 2020-07-17 16:31:12.266855: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll 2020-07-17 16:31:12.269973: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll 2020-07-17 16:31:12.272406: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll 2020-07-17 16:31:12.274777: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll 2020-07-17 16:31:12.277527: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2020-07-17 16:31:12.762765: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2020-07-17 16:31:12.765287: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2020-07-17 16:31:12.766847: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2020-07-17 16:31:12.768874: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4700 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1) 2020-07-17 16:31:12.775271: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x217fe622060 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2020-07-17 16:31:12.778365: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): GeForce GTX 1060 6GB, Compute Capability 6.1 1 Physical GPUs, 1 Logical GPUs 1 Physical GPUs, 1 Logical GPUs

ItamarRocha commented 4 years ago

A api foi atualizada. O projeto está em manutenção. Vou tentar retomar o mais rápido possível. Obrigado pelo feedback.

On Friday, July 17, 2020, Jean Macena notifications@github.com wrote:

Na tentativa de execução utilizando o processamento da GPU o log abaixo é gerado e nada mais acontece. Algum passo a mais é necessário para testar com a GPU?

Teste realizado em um Win10

PS D:\binary-bot> python .\testing.py 2020-07-17 16:31:11.051098: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll 2020-07-17 16:31:12.130954: I tensorflow/stream_executor/ platform/default/dsoloader.cc:44] Successfully opened dynamic library nvcuda.dll 2020-07-17 16:31:12.199665: I tensorflow/core/common runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:01:00.0 name: GeForce GTX 1060 6GB computeCapability: 6.1 coreClock: 1.7085GHz coreCount: 10 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 178.99GiB/s 2020-07-17 16:31:12.204331: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll 2020-07-17 16:31:12.209374: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll 2020-07-17 16:31:12.213760: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll 2020-07-17 16:31:12.216753: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll 2020-07-17 16:31:12.222277: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll 2020-07-17 16:31:12.226835: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll 2020-07-17 16:31:12.235584: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn647.dll 2020-07-17 16:31:12.238806: I tensorflow/core/common runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2020-07-17 16:31:12.240900: I tensorflow/core/platform/cpu_featureguard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2020-07-17 16:31:12.249238: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x217cf6a8c70 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2020-07-17 16:31:12.252842: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2020-07-17 16:31:12.255264: I tensorflow/core/common runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:01:00.0 name: GeForce GTX 1060 6GB computeCapability: 6.1 coreClock: 1.7085GHz coreCount: 10 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 178.99GiB/s 2020-07-17 16:31:12.259884: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll 2020-07-17 16:31:12.262219: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll 2020-07-17 16:31:12.264539: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll 2020-07-17 16:31:12.266855: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll 2020-07-17 16:31:12.269973: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll 2020-07-17 16:31:12.272406: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll 2020-07-17 16:31:12.274777: I tensorflow/stream_executor/ platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn647.dll 2020-07-17 16:31:12.277527: I tensorflow/core/common runtime/gpu/gpudevice.cc:1703] Adding visible gpu devices: 0 2020-07-17 16:31:12.762765: I tensorflow/core/common runtime/gpu/gpudevice.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2020-07-17 16:31:12.765287: I tensorflow/core/common runtime/gpu/gpudevice.cc:1108] 0 2020-07-17 16:31:12.766847: I tensorflow/core/common runtime/gpu/gpudevice.cc:1121] 0: N 2020-07-17 16:31:12.768874: I tensorflow/core/common runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4700 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1) 2020-07-17 16:31:12.775271: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x217fe622060 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2020-07-17 16:31:12.778365: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): GeForce GTX 1060 6GB, Compute Capability 6.1 1 Physical GPUs, 1 Logical GPUs 1 Physical GPUs, 1 Logical GPUs

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ItamarRocha/binary-bot/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMZBEI4TZA5SUTEIWH7UNKLR4CTQZANCNFSM4O6ZLGFA .