24. Execution Statistics#

This table contains the latest execution statistics.

Document

Modified

Method

Run Time (s)

Status

aiyagari_jax

2024-05-07 06:54

cache

70.8

arellano

2024-05-07 06:55

cache

27.74

cake_eating_numerical

2024-05-07 06:55

cache

20.02

hopenhayn

2024-05-07 06:59

cache

229.09

ifp_egm

2024-05-07 07:02

cache

179.51

intro

2024-05-07 07:02

cache

0.96

inventory_dynamics

2024-05-07 07:03

cache

70.89

inventory_ssd

2024-05-07 07:28

cache

1499.51

jax_intro

2024-05-07 07:29

cache

25.94

job_search

2024-05-07 07:29

cache

12.91

kesten_processes

2024-05-07 07:29

cache

20.26

lucas_model

2024-05-07 07:30

cache

21.02

markov_asset

2024-05-07 07:30

cache

18.02

mle

2024-05-07 07:30

cache

14.42

newtons_method

2024-05-07 07:33

cache

159.38

opt_invest

2024-05-07 07:33

cache

18.23

opt_savings_1

2024-05-07 07:34

cache

34.87

opt_savings_2

2024-05-07 07:34

cache

17.81

overborrowing

2024-05-07 07:35

cache

40.13

short_path

2024-05-07 07:35

cache

6.53

status

2024-05-07 07:35

cache

3.92

troubleshooting

2024-05-07 07:02

cache

0.96

wealth_dynamics

2024-05-07 07:37

cache

106.71

zreferences

2024-05-07 07:02

cache

0.96

These lectures are built on linux instances through github actions and amazon web services (aws) to enable access to a gpu. These lectures are built on a p3.2xlarge that has access to 8 vcpu's, a V100 NVIDIA Tesla GPU, and 61 Gb of memory.

You can check the backend used by JAX using:

import jax
# Check if JAX is using GPU
print(f"JAX backend: {jax.devices()[0].platform}")
JAX backend: gpu

and the hardware we are running on:

!nvidia-smi
/opt/conda/envs/quantecon/lib/python3.11/pty.py:89: RuntimeWarning: os.fork() was called. os.fork() is incompatible with multithreaded code, and JAX is multithreaded, so this will likely lead to a deadlock.
  pid, fd = os.forkpty()
Tue May  7 07:35:15 2024       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.182.03   Driver Version: 470.182.03   CUDA Version: 12.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla V100-SXM2...  Off  | 00000000:00:1E.0 Off |                    0 |
| N/A   26C    P0    36W / 300W |    310MiB / 16160MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+