We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a6b453 commit 317f18cCopy full SHA for 317f18c
internlm/utils/common.py
@@ -250,8 +250,9 @@ def enable_pytorch_expandable_segments():
250
251
252
def check_cuda_env():
253
- if os.getenv("CUDA_DEVICE_MAX_CONNECTIONS") is None:
254
- logger.warning("Env var CUDA_DEVICE_MAX_CONNECTIONS has not be set, please note this!")
+ max_connections = os.getenv("CUDA_DEVICE_MAX_CONNECTIONS")
+ assert max_connections is not None, "Env var CUDA_DEVICE_MAX_CONNECTIONS has not been set, please set it to 1!"
255
+ assert max_connections == '1', "Env var CUDA_DEVICE_MAX_CONNECTIONS is set to {}, but it should be set to 1!".format(max_connections)
256
257
258
class DummyProfile:
0 commit comments