mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
refactor: fix typos
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5c6ae48d17
commit
195bf66a49
@@ -234,7 +234,7 @@ int BinaryEncoder::processKernel(size_t &line, const std::vector<std::string> &p
|
||||
|
||||
// Write KernelHeap and padding
|
||||
uint32_t kernelHeapSizeUnpadded = 0U;
|
||||
bool heapsCopiedSuccesfully = true;
|
||||
bool heapsCopiedSuccessfully = true;
|
||||
|
||||
// Use .asm if available, fallback to .dat
|
||||
if (argHelper->fileExists(pathToDump + kernelName + "_KernelHeap.asm")) {
|
||||
@@ -248,7 +248,7 @@ int BinaryEncoder::processKernel(size_t &line, const std::vector<std::string> &p
|
||||
kernelHeapSizeUnpadded = static_cast<uint32_t>(kernelAsBinary.size());
|
||||
kernelBlob.write(kernelAsBinary.data(), kernelAsBinary.size());
|
||||
} else {
|
||||
heapsCopiedSuccesfully = copyBinaryToBinary(pathToDump + kernelName + "_KernelHeap.dat", kernelBlob, &kernelHeapSizeUnpadded);
|
||||
heapsCopiedSuccessfully = copyBinaryToBinary(pathToDump + kernelName + "_KernelHeap.dat", kernelBlob, &kernelHeapSizeUnpadded);
|
||||
}
|
||||
|
||||
uint32_t kernelHeapSize = 0U;
|
||||
@@ -264,11 +264,11 @@ int BinaryEncoder::processKernel(size_t &line, const std::vector<std::string> &p
|
||||
|
||||
// Write GeneralStateHeap, DynamicStateHeap, SurfaceStateHeap
|
||||
if (argHelper->fileExists(pathToDump + kernelName + "_GeneralStateHeap.bin")) {
|
||||
heapsCopiedSuccesfully = heapsCopiedSuccesfully && copyBinaryToBinary(pathToDump + kernelName + "_GeneralStateHeap.bin", kernelBlob);
|
||||
heapsCopiedSuccessfully = heapsCopiedSuccessfully && copyBinaryToBinary(pathToDump + kernelName + "_GeneralStateHeap.bin", kernelBlob);
|
||||
}
|
||||
heapsCopiedSuccesfully = heapsCopiedSuccesfully && copyBinaryToBinary(pathToDump + kernelName + "_DynamicStateHeap.bin", kernelBlob);
|
||||
heapsCopiedSuccesfully = heapsCopiedSuccesfully && copyBinaryToBinary(pathToDump + kernelName + "_SurfaceStateHeap.bin", kernelBlob);
|
||||
if (false == heapsCopiedSuccesfully) {
|
||||
heapsCopiedSuccessfully = heapsCopiedSuccessfully && copyBinaryToBinary(pathToDump + kernelName + "_DynamicStateHeap.bin", kernelBlob);
|
||||
heapsCopiedSuccessfully = heapsCopiedSuccessfully && copyBinaryToBinary(pathToDump + kernelName + "_SurfaceStateHeap.bin", kernelBlob);
|
||||
if (false == heapsCopiedSuccessfully) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@ int BinaryEncoder::validateInput(const std::vector<std::string> &args) {
|
||||
}
|
||||
if (pathToDump.empty()) {
|
||||
if (!argHelper->outputEnabled()) {
|
||||
argHelper->printf("Warning : Path to dump folder not specificed - using ./dump as default.\n");
|
||||
argHelper->printf("Warning : Path to dump folder not specified - using ./dump as default.\n");
|
||||
pathToDump = "dump";
|
||||
addSlash(pathToDump);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user