{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "af8ae1be",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from IPython.core.display import display, HTML\n",
"display(HTML(\"\"))\n",
"%config IPCompleter.use_jedi=False"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "b7668713",
"metadata": {},
"outputs": [],
"source": [
"import jax"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "485f9423",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[GpuDevice(id=0, process_index=0)]"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"jax.devices()"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "d59b2dd7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fri Jul 2 07:46:55 2021 \r\n",
"+-----------------------------------------------------------------------------+\r\n",
"| NVIDIA-SMI 460.84 Driver Version: 460.84 CUDA Version: 11.2 |\r\n",
"|-------------------------------+----------------------+----------------------+\r\n",
"| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\r\n",
"| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |\r\n",
"| | | MIG M. |\r\n",
"|===============================+======================+======================|\r\n",
"| 0 TITAN RTX Off | 00000000:C1:00.0 On | N/A |\r\n",
"| 41% 54C P0 66W / 280W | 1260MiB / 24217MiB | 1% Default |\r\n",
"| | | N/A |\r\n",
"+-------------------------------+----------------------+----------------------+\r\n",
" \r\n",
"+-----------------------------------------------------------------------------+\r\n",
"| Processes: |\r\n",
"| GPU GI CI PID Type Process name GPU Memory |\r\n",
"| ID ID Usage |\r\n",
"|=============================================================================|\r\n",
"+-----------------------------------------------------------------------------+\r\n"
]
}
],
"source": [
"!nvidia-smi"
]
}
],
"metadata": {
"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.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}