Skip to content

Instantly share code, notes, and snippets.

@shaybensasson
Last active September 15, 2018 17:50
Show Gist options
  • Save shaybensasson/c8dc6fd9c0f287785ab0cec869da3eb4 to your computer and use it in GitHub Desktop.
Save shaybensasson/c8dc6fd9c0f287785ab0cec869da3eb4 to your computer and use it in GitHub Desktop.
Versions of everything - to compare two environments
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2018-09-15T17:40:52.322694Z",
"start_time": "2018-09-15T17:40:51.914542Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"pip 18.0 from /home/shay/.virtualenvs/tv-script-generation/lib/python3.5/site-packages/pip (python 3.5)\r\n"
]
}
],
"source": [
"!pip -V"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2018-09-15T17:40:53.821482Z",
"start_time": "2018-09-15T17:40:52.404804Z"
}
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Using TensorFlow backend.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPython 3.5.2\n",
"IPython 6.5.0\n",
"\n",
"numpy 1.12.1\n",
"scipy 0.19.1\n",
"sklearn 0.19.1\n",
"pandas 0.20.3\n",
"keras 2.0.9\n",
"tensorflow 1.3.0\n",
"matplotlib 2.1.0\n",
"seaborn 0.8.1\n",
"tqdm 4.11.2\n",
"\n",
"CUDA Version 8.0.61\r\n"
]
}
],
"source": [
"%reload_ext watermark\n",
"import warnings\n",
"with warnings.catch_warnings():\n",
" warnings.simplefilter('ignore')\n",
" %watermark -v --packages numpy,scipy,sklearn,pandas,keras,tensorflow,matplotlib,seaborn,tqdm\n",
"print()\n",
"!cat /usr/local/cuda/version.txt"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"ExecuteTime": {
"end_time": "2018-09-15T17:40:53.952182Z",
"start_time": "2018-09-15T17:40:53.823505Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"#define CUDNN_MAJOR 6\r\n",
"#define CUDNN_MINOR 0\r\n",
"#define CUDNN_PATCHLEVEL 21\r\n",
"--\r\n",
"#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)\r\n",
"\r\n",
"#include \"driver_types.h\"\r\n"
]
}
],
"source": [
"!cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"ExecuteTime": {
"end_time": "2018-09-15T17:40:55.611920Z",
"start_time": "2018-09-15T17:40:55.464698Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"396.54\r\n"
]
}
],
"source": [
"!nvidia-smi --query-gpu=driver_version --format=csv,noheader"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment