Merge pull request #7 from filecoin-project/chores/address-pr-nit

bit shift 2 instead of 1 as per PR feedback
This commit is contained in:
Łukasz Magiera 2020-04-02 01:56:33 +02:00 committed by GitHub
commit 2c98869d96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,20 +50,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
BaseMinMemory: 1 << 30,
},
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
MaxMemory: 1 << 11,
MinMemory: 1 << 11,
MaxMemory: 2 << 10,
MinMemory: 2 << 10,
MultiThread: false,
BaseMinMemory: 1 << 11,
BaseMinMemory: 2 << 10,
},
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
MaxMemory: 1 << 23,
MinMemory: 1 << 23,
MaxMemory: 8 << 20,
MinMemory: 8 << 20,
MultiThread: false,
BaseMinMemory: 1 << 23,
BaseMinMemory: 8 << 20,
},
},
sealtasks.TTPreCommit1: {
@ -84,20 +84,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
BaseMinMemory: 1 << 30,
},
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
MaxMemory: 1 << 11,
MinMemory: 1 << 11,
MaxMemory: 2 << 10,
MinMemory: 2 << 10,
MultiThread: false,
BaseMinMemory: 1 << 11,
BaseMinMemory: 2 << 10,
},
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
MaxMemory: 1 << 23,
MinMemory: 1 << 23,
MaxMemory: 8 << 20,
MinMemory: 8 << 20,
MultiThread: false,
BaseMinMemory: 1 << 23,
BaseMinMemory: 8 << 20,
},
},
sealtasks.TTPreCommit2: {
@ -118,20 +118,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
BaseMinMemory: 1 << 30,
},
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
MaxMemory: 1 << 11,
MinMemory: 1 << 11,
MaxMemory: 2 << 10,
MinMemory: 2 << 10,
MultiThread: true,
BaseMinMemory: 1 << 11,
BaseMinMemory: 2 << 10,
},
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
MaxMemory: 1 << 23,
MinMemory: 1 << 23,
MaxMemory: 8 << 20,
MinMemory: 8 << 20,
MultiThread: true,
BaseMinMemory: 1 << 23,
BaseMinMemory: 8 << 20,
},
},
sealtasks.TTCommit1: { // Very short (~100ms), so params are very light
@ -152,20 +152,20 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
BaseMinMemory: 1 << 30,
},
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
MaxMemory: 1 << 11,
MinMemory: 1 << 11,
MaxMemory: 2 << 10,
MinMemory: 2 << 10,
MultiThread: false,
BaseMinMemory: 1 << 11,
BaseMinMemory: 2 << 10,
},
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
MaxMemory: 1 << 23,
MinMemory: 1 << 23,
MaxMemory: 8 << 20,
MinMemory: 8 << 20,
MultiThread: false,
BaseMinMemory: 1 << 23,
BaseMinMemory: 8 << 20,
},
},
sealtasks.TTCommit2: { // TODO: Measure more accurately
@ -188,22 +188,22 @@ var ResourceTable = map[sealtasks.TaskType]map[abi.RegisteredProof]Resources{
BaseMinMemory: 10 << 30,
},
abi.RegisteredProof_StackedDRG2KiBSeal: Resources{
MaxMemory: 1 << 11,
MinMemory: 1 << 11,
MaxMemory: 2 << 10,
MinMemory: 2 << 10,
MultiThread: false,
CanGPU: true,
BaseMinMemory: 1 << 11,
BaseMinMemory: 2 << 10,
},
abi.RegisteredProof_StackedDRG8MiBSeal: Resources{
MaxMemory: 1 << 23,
MinMemory: 1 << 23,
MaxMemory: 8 << 20,
MinMemory: 8 << 20,
MultiThread: false,
CanGPU: true,
BaseMinMemory: 1 << 23,
BaseMinMemory: 8 << 20,
},
},
}