-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
aws-codebuild: Can't use standard images on GPU instance #29094
Comments
I think you can use awsDeepLearningContainersImage by specifying repositoryName, tag and optionally the account.
If this image is available, we should cut a little PR to get it in the enums. But I tried
and it does not return any images with Can you share how do you configure the |
Thanks for taking a look! Here's a screenshot of the console configuration. In the console, selecting GPU is just a checkbox unrelated to the image type or anything, but when using CDK it seems the supported images are tied to whether or not GPU is being used. Additionally I didn't see ECR repository published for aws/standard/7.0. Here is the definition for STANDARD_7_0 in LinuxBuildImage, just can't find any way to use it for a GPU project 😅 |
Running |
@pahud does the problem make sense? Just trying to do through CDK what was previously done through console. |
I guess the GPU supported images are actually from custom images which are not included in |
@pahud The AL/Ubuntu curated images allow enabling GPU compute on seemingly the same curated image. Right now to use Ubuntu GPU with CDK, I need to create the Project with LinuxGpuBuildImage using an old GPU DLC, and then override the image with Ubuntu Standard image when I start the build. However this would fail with |
@claytonparnell we would love to explore better support for that. Can you share your workaround CDK code snippets do I can deploy it in my account? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Sure. So in CDK I would have
Then when I call the project from GitHub Action (which uses start-build), I pass in
Using this I am able to replicate the functionality of choosing standard 7.0 image in console, then checking the box to use GPU-enhanced compute |
Any update on this? |
Just want to check in- if we're limited by CFN support and need to escalate there instead, please let me know |
Describe the bug
Creating codebuild project via console, I can create using standard images e.g.
aws/codebuild/standard:7.0
.However, using CDK, in order to create a GPU project AFAICT I need to use LinuxGpuBuildImage - so I can only create using DLC images - see https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-codebuild/lib/linux-gpu-build-image.ts#L22 . Not only that, but the DLC images available as constants are 4 years old
Why not allow to create via image id here as well?
Expected Behavior
Create GPU project using standard image, from image id, or from LinuxGpuBuildImage constant.
Or, have separate way to specify that the build uses GPU, regardless of BuildImage type (similar to console).
Current Behavior
In order to use GPU, must use LinuxGpuBuildImage. Selection of LinuxGpuBuildImage is limited compared to console, and doesn't offer standard images.
Reproduction Steps
LinuxGpuBuildImage.fromCodeBuildImageId - doesn't exist
LinuxGpuBuildImage.STANDARD_7_0 - doesn't exist
LinuxBuildImage.STANDARD_7_0 - no other way to specify to use GPU on this image
Possible Solution
Additional Information/Context
No response
CDK CLI Version
2.127.0
Framework Version
No response
Node.js Version
18
OS
AL2
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: