|
|
|
@@ -28,7 +28,7 @@ var ( |
|
|
|
ResourceSpecs *models.ResourceSpecs |
|
|
|
) |
|
|
|
|
|
|
|
func GenerateTask(ctx *context.Context, jobName, image, command, uuid, codePath, modelPath, benchmarkPath, snn4imagenetPath, jobType, gpuQueue string, resourceSpecId int) error { |
|
|
|
func GenerateTask(ctx *context.Context, jobName, image, command, uuid, codePath, modelPath, benchmarkPath, snn4imagenetPath, brainScorePath, jobType, gpuQueue string, resourceSpecId int) error { |
|
|
|
dataActualPath := setting.Attachment.Minio.RealPath + |
|
|
|
setting.Attachment.Minio.Bucket + "/" + |
|
|
|
setting.Attachment.Minio.BasePath + |
|
|
|
@@ -104,6 +104,13 @@ func GenerateTask(ctx *context.Context, jobName, image, command, uuid, codePath, |
|
|
|
ReadOnly: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
HostPath: models.StHostPath{ |
|
|
|
Path: brainScorePath, |
|
|
|
MountPath: BrainScoreMountPath, |
|
|
|
ReadOnly: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
|