Skip to content

Conversation

Sakuralbj
Copy link

Signed-off-by: 630445639 [email protected]

@cheyang
Copy link
Collaborator

cheyang commented Jul 8, 2019

Thanks for your contributions! @Sakuralbj

Could you please add the guide and samples for others to understand the how to use it? Thanks.

},
}
if m.mps {
response.Envs[EnvPercentage] = fmt.Sprintf("%d", 100*podReqGPU/getGPUMemory())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask if there is the only change for MPS support? I guess the volume mount(/tmp/mps) should be also added.

Btw, I think it should be 100*containerReqGPU/getGPUMemory() instead of 100*podReqGPU/getGPUMemory().

EnvResourceByDev = "ALIYUN_COM_GPU_MEM_DEV"
EnvAssignedFlag = "ALIYUN_COM_GPU_MEM_ASSIGNED"
EnvResourceAssumeTime = "ALIYUN_COM_GPU_MEM_ASSUME_TIME"
EnvPercentage = "CUDA_MPS_ACTIVE_THREAD_PERCENTAGE"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest it should be EnvMPSActiveThreadPercentage.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have done it.

@Sakuralbj Sakuralbj changed the title Add CUDA_MPS_ACTIVE_THREAD_PERCENTAGE information in MPS situation. Add env and volume information in MPS situation. Jul 21, 2019
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

Successfully merging this pull request may close these issues.

2 participants