Skip to content

Commit

Permalink
Ajustes ortograficos
Browse files Browse the repository at this point in the history
  • Loading branch information
luizklitzke1 committed Nov 28, 2023
1 parent e7a42d5 commit 1df46ab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CPP Parallel Processing/kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ cudaError_t CUDAMatrixProduct(const Matrix A, const Matrix B, Matrix C, UINT uiM
cudaStatus = cudaMalloc(&A_GPU.elements, A_GPU.width * A_GPU.height * sizeof(float));
if (cudaStatus != cudaSuccess)
{
fprintf(fp,"Erroi ao alocar memória da matriz A - cudaMalloc()");
fprintf(fp,"Erro ao alocar memória da matriz A - cudaMalloc()");
goto FreeCuda;
}

Expand Down Expand Up @@ -270,7 +270,7 @@ void CPUConcurrencyMatrixProduct(const Matrix A, const Matrix B, Matrix C, msTim
GetSystemInfo(&sysInfo);
const UINT uiSupportedThreads = std::thread::hardware_concurrency();

fprintf(fp, "Threads por core: %hd\n", uiSupportedThreads);
fprintf(fp, "Threads suportadas: %hd\n", uiSupportedThreads);

auto clockInicio = std::chrono::high_resolution_clock::now();

Expand Down Expand Up @@ -308,7 +308,7 @@ int main(int argc, char **argv)

{
const std::string sTitulo = "[Benchmark de processamento paralelo]";
const std::string sOperacao = "Multiplicação de matriz NxN por outra matriz NxN - (N Sendo um número inteiro > 0 e MULTIPLO DE " + std::to_string(BLOCK_SIZE) + ")";
const std::string sOperacao = "Multiplicação de matriz NxN por outra matriz NxN - (N Sendo um número inteiro > 0 e MÚLTIPLO DE " + std::to_string(BLOCK_SIZE) + ")";

printf("%s\n", sTitulo.c_str());
printf("\n[Configurações]\nOperação: %s\n", sOperacao.c_str());
Expand Down Expand Up @@ -337,7 +337,7 @@ int main(int argc, char **argv)
}

fprintf(fp, "Valor de N: %d\n", iMatrixSizeCFG);
fprintf(fp, "Margem de erro para cáculos de ponto flutuante: %.2f%%%\n\n", float(fErroMarginPercent));
fprintf(fp, "Margem de erro para cálculos de ponto flutuante: %.2f%%%\n\n", float(fErroMarginPercent));

Matrix vA;
vA.width = iMatrixSizeCFG;
Expand Down Expand Up @@ -399,15 +399,15 @@ int main(int argc, char **argv)
cudaError_t cudaStatus = CUDAMatrixProduct(vA, vB, vCParaleloCUDA, iMatrixSizeCFG, benchResultsCUDAProcess.msTimeElapsed, benchResultsCUDAFull.msTimeElapsed);
if (cudaStatus != cudaSuccess)
{
fprintf(fp,"Erro ao processar em CUDA");
fprintf(fp, "Erro ao processar em CUDA");
throw cudaStatus;
}

// Limpar devices para evitar erros de profiling
cudaStatus = cudaDeviceReset();
if (cudaStatus != cudaSuccess)
{
fprintf(fp,"Erro ao executar cudaDeviceReset()");
fprintf(fp, "Erro ao executar cudaDeviceReset()");
throw cudaStatus;
}

Expand Down Expand Up @@ -518,7 +518,7 @@ int main(int argc, char **argv)

fclose(fp);

printf("\nExecução finalizada, resultados salvos no arquivo results.txt, presente no mesmo path desse executável.\n\nPrecione qualquer tecla para fechar o terminal.\n");
printf("\nExecução finalizada, resultados salvos no arquivo results.txt, presente no mesmo path desse executável.\n\nInforme qualquer tecla para fechar o terminal.\n");
_getch();

return 0;
Expand Down

0 comments on commit 1df46ab

Please sign in to comment.