Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop in speed on GPU from version 0.4.35 to 0.4.36 #27218

Open
patrick-egenlauf opened this issue Mar 18, 2025 · 0 comments
Open

Drop in speed on GPU from version 0.4.35 to 0.4.36 #27218

patrick-egenlauf opened this issue Mar 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@patrick-egenlauf
Copy link

Description

I use the lax.scan function. Inside the scan_step, among other things, I call a jitted function which (among other things) calls lax.cond.

I observed a huge drop in speed (factor 9 in my case) after updating jax when running it on my GPU (I didn't try it on the CPU as it takes a while to run). I was able to trace it back to the update from version 0.4.35 to 0.4.36.

The code is quite extensive and I am not allowed to publish it yet. My quick attempts to create a short minimal example did not result in the same huge drop.

This might be related to #26162. However, I have also checked the newer versions of jax up to 0.5.2 and still observe the same drop in speed. I know the issue is still open, but changes have been made to the xla library. I was hoping that they were already released and so it would be fixed in newer versions, but that is not the case. I am not sure how to incorporate the changes in the xla library into my environment, which is why I opened a separate issue.

System info (python version, jaxlib version, accelerator, etc.)

jax:    0.4.36
jaxlib: 0.4.36
numpy:  2.2.3
python: 3.12.5 (main, Aug 14 2024, 05:08:31) [Clang 18.1.8 ]
device info: NVIDIA RTX 2000 Ada Generation Laptop GPU-1, 1 local devices"
process_count: 1
platform: uname_result(system='Linux', node='ThinkPad-P1-Gen-6', release='6.8.0-52-generic', version='#53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2', machine='x86_64')


$ nvidia-smi
Tue Mar 18 16:34:23 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.42.06              Driver Version: 555.42.06      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| 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  NVIDIA RTX 2000 Ada Gene...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   53C    P3             12W /   35W |     121MiB /   8188MiB |      7%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2814      G   /usr/lib/xorg/Xorg                              4MiB |
|    0   N/A  N/A    155902      C   python3                                        98MiB |
+-----------------------------------------------------------------------------------------+
@patrick-egenlauf patrick-egenlauf added the bug Something isn't working label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant