( ! ) Warning: Invalid argument supplied for foreach() in /home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php on line 2895
Call Stack
#TimeMemoryFunctionLocation
10.0001219992{main}( ).../index.php:0
20.0002222848require( '/home/users/1/movion/web/artneural_net/htdocs/wp-blog-header.php' ).../index.php:17
30.0004240296require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-load.php' ).../wp-blog-header.php:13
40.0005252904require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-config.php' ).../wp-load.php:37
50.0010378688require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-settings.php' ).../wp-config.php:96
60.175530045848include_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php' ).../wp-settings.php:304
70.177730303720HeadCleaner->__construct( ).../head-cleaner.php:3503
80.180430363752HeadCleaner->_get_filters( ).../head-cleaner.php:180

( ! ) Warning: Invalid argument supplied for foreach() in /home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php on line 2895
Call Stack
#TimeMemoryFunctionLocation
10.0001219992{main}( ).../index.php:0
20.0002222848require( '/home/users/1/movion/web/artneural_net/htdocs/wp-blog-header.php' ).../index.php:17
30.0004240296require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-load.php' ).../wp-blog-header.php:13
40.0005252904require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-config.php' ).../wp-load.php:37
50.0010378688require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-settings.php' ).../wp-config.php:96
60.175530045848include_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php' ).../wp-settings.php:304
70.177730303720HeadCleaner->__construct( ).../head-cleaner.php:3503
80.180430363752HeadCleaner->_get_filters( ).../head-cleaner.php:180

( ! ) Warning: Invalid argument supplied for foreach() in /home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php on line 2895
Call Stack
#TimeMemoryFunctionLocation
10.0001219992{main}( ).../index.php:0
20.0002222848require( '/home/users/1/movion/web/artneural_net/htdocs/wp-blog-header.php' ).../index.php:17
30.0004240296require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-load.php' ).../wp-blog-header.php:13
40.0005252904require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-config.php' ).../wp-load.php:37
50.0010378688require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-settings.php' ).../wp-config.php:96
60.175530045848include_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php' ).../wp-settings.php:304
70.177730303720HeadCleaner->__construct( ).../head-cleaner.php:3503
80.180830365288HeadCleaner->_get_filters( ).../head-cleaner.php:181

( ! ) Warning: Invalid argument supplied for foreach() in /home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php on line 2895
Call Stack
#TimeMemoryFunctionLocation
10.0001219992{main}( ).../index.php:0
20.0002222848require( '/home/users/1/movion/web/artneural_net/htdocs/wp-blog-header.php' ).../index.php:17
30.0004240296require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-load.php' ).../wp-blog-header.php:13
40.0005252904require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-config.php' ).../wp-load.php:37
50.0010378688require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-settings.php' ).../wp-config.php:96
60.175530045848include_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php' ).../wp-settings.php:304
70.177730303720HeadCleaner->__construct( ).../head-cleaner.php:3503
80.180830365288HeadCleaner->_get_filters( ).../head-cleaner.php:181

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /home/users/1/movion/web/artneural_net/htdocs/wp-content/plugins/head-cleaner/head-cleaner.php:2895) in /home/users/1/movion/web/artneural_net/htdocs/wp-includes/feed-rss2.php on line 8
Call Stack
#TimeMemoryFunctionLocation
10.0001219992{main}( ).../index.php:0
20.0002222848require( '/home/users/1/movion/web/artneural_net/htdocs/wp-blog-header.php' ).../index.php:17
30.371344755256require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.372944767976do_feed( ).../template-loader.php:37
50.372944768168do_action( ).../functions.php:1291
60.372944768896WP_Hook->do_action( ).../plugin.php:453
70.372944768992WP_Hook->apply_filters( ).../class-wp-hook.php:323
80.372944770448call_user_func_array:{/home/users/1/movion/web/artneural_net/htdocs/wp-includes/class-wp-hook.php:300} ( ).../class-wp-hook.php:300
90.373044770544do_feed_rss2( ).../class-wp-hook.php:300
100.373044770752load_template( ).../functions.php:1329
110.373344808888require_once( '/home/users/1/movion/web/artneural_net/htdocs/wp-includes/feed-rss2.php' ).../template.php:684
120.373444809104header ( ).../feed-rss2.php:8
GPU – ArtNeural 汎用人工知能の創り方 http://artneural.net How to create Artificial General Intelligence Wed, 09 Nov 2016 16:39:53 +0000 ja hourly 1 https://wordpress.org/?v=4.7.28 TensorFlow r0.9 (GPU版)を ubuntu16.04 にインストール http://artneural.net/article/galleria-xt-ubuntu-16-04-tensorflow-r09-65.html http://artneural.net/article/galleria-xt-ubuntu-16-04-tensorflow-r09-65.html#respond Sun, 03 Jul 2016 14:24:50 +0000 http://artneural.net/?p=65 [Read more...]]]> TensorFlowを試してみるための環境を構築する。

GALLERIA XTを購入

ドスパラでGALLERIA XT (2016/6)を購入。
とりあえず、ランキングトップになっている無難なところのスペックのものを選択。

OS  :Windows 10 Pro 64bit のインストール(標準構成から変更)
CPU   :インテル Core i7-6700
メモリ :16GB
HDD   :480GB SSD + 2TB HDD + 2TB HDD(標準構成に追加=>Ubuntu用に)
GPU   :NVIDIA GeForce GTX960 2GB

Ubuntuのインストール 16.04

日本語版のものをダウンロード
https://www.ubuntulinux.jp/download/ja-remix

ubuntu-ja-16.04-desktop-amd64.iso(ISOイメージ)
http://cdimage.ubuntulinux.jp/releases/16.04/ubuntu-ja-16.04-desktop-amd64.iso

上記、ダウンロードしたISOイメージをDVDに焼く。

GALLERIAを起動字にF2でBOOTでDVDを選択。
2つめのHDDにUbuntuをインストール。
(一応、SSDはそのままWindowsを残しておく)

Ubuntuでの前準備

インストール後の設定。そのままだとネットにつながったりつながらなかったりしたため、DNSの設定

sudo vi /etc/resolvconf/resolv.conf.d/head

nameserver 8.8.8.8

sudo resolvconf -u

と、各種アップグレード

sudo apt update
sudo apt upgrade

 
CUDAのインストール

sudo apt install nvidia-cuda-toolkit nvidia-361

==> Configuring Secure Boot
Your system has UEFI Secure Boot enabled. UEFI Secure Boot is not compatible with the use of third-party drivers.

と表示される。「はい」を選択する。パスワード設定が2回ほど求められる。
その後再起動。

sudo reboot

ただ、このまま再起動するとGUIからはログインできないような状態になってしまう模様。
そのため、再起動時にF2から BOOTの設定で UEFIのモードを OtherOS に設定を変更して再起動を実施するとnvidiaのドライバーを認識して起動できる模様。

※NVIDIAのサイトから最新のドライバをダウンロードしてインストールする形でも動作すると思われるが、今回はパッケージからインストールしている。
※GUIを停止してインストールするなどいくつか方法があるのかもしれない。

cuDNN V4 のインストール

 https://developer.nvidia.com/cudnn
 からダウンロード。参考にしたブログなどには登録まで1、2日かかると書かれていたが、私が試した時点ではすぐに登録が完了できた。

で、V4をダウンロードしてインストール
cuDNN v4 Library for Linux
※最新は、5.1だったがTensorFlowの指定のあるv4をインストール(5.1でも動きそうな気はする)

ダウンロードしたファイル ホームに設置して解答し、各ディレクトリに配置。

tar zxvf cudnn-7.0-linux-x64-v4.0-prod.tgz
sudo cp -a cuda/lib64/* /usr/local/lib/
sudo cp -a cuda/include/* /usr/local/include/
sudo ldconfig

 Tensorflowのインストール

python3で利用。pipのインストールとupgradeを行ってから、tensorflowをインストール。

sudo apt-get install python3-pip
sudo pip3 install --upgrade pip
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl
sudo pip3 install --upgrade $TF_BINARY_URL

動作確認

python3

 太字が入力した部分です。

>>> import tensorflow as tf
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.so locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.so locally

⇒CUDAが認識されてそう。

>>> hello = tf.constant(‘Hello, TensorFlow!’)
>>> sess=tf.Session()
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:924] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_init.cc:102] Found device 0 with properties:
name: GeForce GTX 960
major: 5 minor: 2 memoryClockRate (GHz) 1.1775
pciBusID 0000:01:00.0
Total memory: 2.00GiB
Free memory: 1.76GiB
I tensorflow/core/common_runtime/gpu/gpu_init.cc:126] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_init.cc:136] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:806] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 960, pci bus id: 0000:01:00.0)

⇒GPUが認識されてそう。

>>> quit()

参考としたサイト)
http://qiita.com/yukoba/items/3692f1cb677b2383c983

]]>
http://artneural.net/article/galleria-xt-ubuntu-16-04-tensorflow-r09-65.html/feed 0