νΈνλλ tensorflow-gpu, Python, CUDA, cuDNN νμΈνκΈ°
Windows: https://www.tensorflow.org/install/source_windows?hl=ko
Linux/Mac OS: https://www.tensorflow.org/install/source?hl=ko
Raspberry Pi: https://www.tensorflow.org/install/source_rpi?hl=ko
https://developer.nvidia.com/cuda-90-download-archive μμ μμ μ νκ²½μ λ§λ CUDA download
μμ νκ²½
Opertaing System : Windows
Architecture : x86_64
Version : 10
Installer Type : exe (local)
μ μμ νκ²½μΌ κ²½μ°μ λ€μ΄λ‘λ λ§ν¬ https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_win10-exe
1-2. Install CUDA 10.0 (2019-09-27-Fri κΈ°μ€ pip install tensorflow-gpuλ cuda10.dll νμ https://www.tensorflow.org/install/gpu)
https://developer.nvidia.com/cuda-10.0-download-archive μμ μμ μ νκ²½μ λ§λ CUDA download
μμ νκ²½
Opertaing System : Windows
Architecture : x86_64
Version : 10
Installer Type : exe (local)
μ μμ νκ²½μΌ κ²½μ°μ λ€μ΄λ‘λ λ§ν¬ https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_411.31_win10
Reference: https://developer.nvidia.com/cudnn
μμ΄λκ° μλ€λ©΄ Login, μλ€λ©΄ Join ν Login
the Terms of the cuDNN Software License Agreement μ λμ ν μμ μ νκ²½μ λ§λ cuDNN download
λ€μ΄λ‘λν cuDNN νμΌμ unzip ν ν νμΌλ€μ λ³΅μ¬ λλ μλΌλ΄κΈ° ν
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\9.0
μ λλ ν 리μ λΆμ¬λ£κΈ°
Reference: https://www.tensorflow.org/install/gpu
cmd λλ anaconda prompt λ₯Ό μ€ννλ€.
> conda create -n tensorflow python=3.6 anaconda
μ 'tensorflow' λ κ°μνκ²½μ μ΄λ¦μ΄λ€.
> conda info --envs
κ°μνκ²½ 'tensorflow λ₯Ό activate νλ€.
> activate tensorflow
> pip install tensorflow-gpu
> python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
File>Settings
Project:PyCharmProjects>Project Interpreter
ν±λλ₯Ό ν΄λ¦νκ³ add λ₯Ό ν΄λ¦νλ€.
System Interpreter>Interpreter>
κ°μνκ²½ directory μ μλ python.exe λ₯Ό μ ννλ€.