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

Incorrect default value of CUBLAS_WORKSPACE_CONFIG #47690

Open
afennelly-mitre opened this issue Sep 16, 2024 · 0 comments
Open

Incorrect default value of CUBLAS_WORKSPACE_CONFIG #47690

afennelly-mitre opened this issue Sep 16, 2024 · 0 comments

Comments

@afennelly-mitre
Copy link

afennelly-mitre commented Sep 16, 2024

os.environ["CUBLAS_WORKSPACE_CONFIG"] = "4096:8"

and

os.environ["CUBLAS_WORKSPACE_CONFIG"] = "4096:8"

The above lines manually set the value of the environment variable CUBLAS_WORKSPACE_CONFIG. There is a comment above the line which points to this pytorch issue. However, I suspect this is an error and the intended default value should be preceded with a colon, ie. :4096:8 rather than the current value of 4096:8.

This intuition is taken from this comment on a pytorch issue.

This minor difference makes my application logs extremely difficult to read, as they become cluttered with:

2024-09-16 11:11:26,220 INFO multi_agent_fire_harness.py:222 -- Agent agent_5 is now moving right.
2024-09-16 11:11:26,220 INFO agent.py:178 -- Agent agent_6 has completed a control line of length 2953 ft.
2024-09-16 11:11:26,221 INFO multi_agent_fire_harness.py:209 -- Agent agent_6 has completed the current mitigation. The current mitigation count for this agent is: 1
2024-09-16 11:11:26,221 INFO multi_agent_fire_harness.py:222 -- Agent agent_6 is now moving down.
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
2024-09-16 11:11:26,316 INFO fire_harness.py:324 -- Agent agent_4 is starting to set a control line on fuel model 'Brush' at position (0, 63).
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
2024-09-16 11:11:32,693 INFO fire_harness.py:324 -- Agent agent_5 is starting to set a control line on fuel model 'Brush' at position (126, 75).
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)
/home/afennelly/simharness/.venv/lib/python3.9/site-packages/torch/nn/modules/linear.py:114: UserWarning: Could not parse CUBLAS_WORKSPACE_CONFIG, using default workspace size of 8519680 bytes. (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:60.)
  return F.linear(input, self.weight, self.bias)

and so on. Please make this update ASAP !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant