@punks/backend-entity-manager 0.0.293 → 0.0.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ export type BathJobDefinition = {
3
3
  image: string;
4
4
  memory: number;
5
5
  vcpu: number;
6
+ gpuMemory?: number;
6
7
  defaultCommand: string[];
7
8
  };
8
9
  export type BatchJobOverrides = {
@@ -2,6 +2,7 @@ import { JobDefinition } from "../../../../extensions/jobs/abstractions/definiti
2
2
  export type AwsBatchInfrastructureParams = {
3
3
  vcpu: number;
4
4
  memory: number;
5
+ gpuMemory?: number;
5
6
  dockerImage: string;
6
7
  };
7
8
  export type AwsBatchInvocationParams = {
package/dist/esm/index.js CHANGED
@@ -40084,6 +40084,14 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40084
40084
  type: ResourceType.VCPU,
40085
40085
  value: definition.vcpu.toString(),
40086
40086
  },
40087
+ ...(definition.gpuMemory
40088
+ ? [
40089
+ {
40090
+ type: ResourceType.GPU,
40091
+ value: definition.gpuMemory.toString(),
40092
+ },
40093
+ ]
40094
+ : []),
40087
40095
  ],
40088
40096
  networkConfiguration: {
40089
40097
  assignPublicIp: AssignPublicIp.ENABLED,
@@ -40192,6 +40200,7 @@ let AwsJobsProvider = class AwsJobsProvider {
40192
40200
  image: awsInfraParams.dockerImage,
40193
40201
  jobUid: definition.uid,
40194
40202
  memory: awsInfraParams.memory,
40203
+ gpuMemory: awsInfraParams.gpuMemory,
40195
40204
  vcpu: awsInfraParams.vcpu,
40196
40205
  defaultCommand: awsInvocationParams.startCommand,
40197
40206
  });