-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update c550 base operation data and h2d data
- Loading branch information
Hodoryu
committed
Aug 16, 2024
1 parent
10c7afd
commit 013fc93
Showing
22 changed files
with
144 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
M: 8192 | ||
N: 8192 | ||
K: 8192 | ||
M: 6656 | ||
N: 2048 | ||
K: 4096 | ||
DIST_BACKEND: "nccl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
M: 8192 | ||
N: 8192 | ||
K: 8192 | ||
M: 6656 | ||
N: 2048 | ||
K: 4096 | ||
DIST_BACKEND: "nccl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
* 产品名称:C550 | ||
* 产品型号:曦云®C550 64G | ||
* TDP:350W | ||
* TDP:450W | ||
|
||
# 所用服务器配置 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright (c) 2024 BAAI. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License") | ||
#include <stdio.h> | ||
#include <cuda_runtime.h> | ||
|
||
#define GB (1024ULL * 1024ULL * 1024ULL) | ||
#define SIZE (16ULL * GB) | ||
#define WARMUP_ITERATIONS 100 | ||
#define ITERATIONS 1000 | ||
|
||
void checkCudaError(cudaError_t err, const char *msg) { | ||
if (err != cudaSuccess) { | ||
fprintf(stderr, "CUDA Error: %s: %s\n", msg, cudaGetErrorString(err)); | ||
exit(EXIT_FAILURE); | ||
} | ||
} | ||
|
||
int main() { | ||
float *d_src, *d_dst; | ||
cudaEvent_t start, end; | ||
float elapsed_time; | ||
|
||
checkCudaError(cudaMallocHost(&d_src, SIZE), "cudaMallocHost"); | ||
checkCudaError(cudaMalloc(&d_dst, SIZE), "cudaMalloc"); | ||
|
||
checkCudaError(cudaEventCreate(&start), "cudaEventCreate"); | ||
checkCudaError(cudaEventCreate(&end), "cudaEventCreate"); | ||
|
||
for (int i = 0; i < WARMUP_ITERATIONS; ++i) { | ||
checkCudaError(cudaMemcpy(d_dst, d_src, SIZE, cudaMemcpyHostToDevice), "cudaMemcpy"); | ||
} | ||
|
||
checkCudaError(cudaEventRecord(start), "cudaEventRecord"); | ||
|
||
for (int i = 0; i < ITERATIONS; ++i) { | ||
checkCudaError(cudaMemcpy(d_dst, d_src, SIZE, cudaMemcpyHostToDevice), "cudaMemcpy"); | ||
} | ||
|
||
checkCudaError(cudaEventRecord(end), "cudaEventRecord"); | ||
checkCudaError(cudaEventSynchronize(end), "cudaEventSynchronize"); | ||
|
||
checkCudaError(cudaEventElapsedTime(&elapsed_time, start, end), "cudaEventElapsedTime"); | ||
|
||
double bandwidth = SIZE * ITERATIONS / (elapsed_time / 1000.0); | ||
|
||
printf("[FlagPerf Result]transfer-bandwidth=%.2fGiB/s\n", bandwidth / (1024.0 * 1024.0 * 1024.0)); | ||
printf("[FlagPerf Result]transfer-bandwidth=%.2fGB/s\n", bandwidth / (1000.0 * 1000.0 * 1000.0)); | ||
|
||
checkCudaError(cudaFreeHost(d_src), "cudaFreeHost"); | ||
checkCudaError(cudaFree(d_dst), "cudaFree"); | ||
checkCudaError(cudaEventDestroy(start), "cudaEventDestroy"); | ||
checkCudaError(cudaEventDestroy(end), "cudaEventDestroy"); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export MACA_PATH=/opt/maca | ||
export CUDA_PATH=$MACA_PATH/tools/cu-bridge | ||
export MACA_CLANG_PATH=$MACA_PATH/mxgpu_llvm/bin | ||
export LD_LIBRARY_PATH=./:$MACA_PATH/lib:$LD_LIBRARY_PATH | ||
export PATH=$CUDA_PATH/bin:$MACA_CLANG_PATH:$PATH | ||
export MACA_VISIBLE_DEVICES=0 | ||
cucc bandwidth.cu -lcublas -o bdtest | ||
./bdtest |
Oops, something went wrong.