Skip to content

Add env and volume information in MPS situation.#13

Open
Sakuralbj wants to merge 1 commit intoAliyunContainerService:masterfrom
Sakuralbj:branchmps
Open

Add env and volume information in MPS situation.#13
Sakuralbj wants to merge 1 commit intoAliyunContainerService:masterfrom
Sakuralbj:branchmps

Conversation

@Sakuralbj
Copy link
Copy Markdown

Signed-off-by: 630445639 630445639@qq.com

@cheyang
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Signed-off-by: 630445639 <630445639@qq.com>
@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