Skip to content

Commit

Permalink
measurement files added
Browse files Browse the repository at this point in the history
  • Loading branch information
GokayGulsoy committed Dec 10, 2023
1 parent 70df10d commit 3479af1
Show file tree
Hide file tree
Showing 34 changed files with 246 additions and 2,478 deletions.
4 changes: 3 additions & 1 deletion ECRv2/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/local/cuda-12.1/targets/x86_64-linux/include"
"/usr/local/cuda-12.1/targets/x86_64-linux/include/**",
"/home/gokay/llvm-project/llvm/include/**",
"/usr/include/llvm-16"
],
"defines": [],
"compilerPath": "/home/gokay/llvm-project/build/bin/clang",
Expand Down
15 changes: 10 additions & 5 deletions ECRv2/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

To use LLVM library together with CUDA CMake can be used:
## Requirements

## Requirements

- ninja
- cmake
- clang and lld
Expand All @@ -23,24 +25,27 @@ cmake -G Ninja -S .. -B . \

ninja
```
# singleECR

# singleECR

singleECR driver allows us to run single convolution operations per feature and kernel. When the code is built its binary is under build directory. Time measurement is printed to console.

## Usage

Feature and kernel paths can be provided via command line arguments. Optionally, output directory can be provided for the resulting convolution.

```shell
./singleECR --kernel <path-to-kernel> --feature <path-to-feature>
```

For example,

```shell
./singleECR --kernel ../../dataset/resnet/kernel/layer3.2.conv2.weight --feature ../../dataset/resnet/feature/feature38 --output singleECR_result.txt
```

## Testing

(TODO_GOKAY A python script that takes in the kernel, feature and optionally the output of singlECR)
```shell
python3 verify_convolution.py --kernel ../../dataset/resnet/kernel/layer3.2.conv2.weight --feature ../../dataset/resnet/feature/feature38 --test_output singleECR_result.txt
python3 conv_test.py --kernel ../../dataset/resnet/kernel/layer3.2.conv2.weight --feature ../../dataset/resnet/feature/feature38 --test_output singleECR_result.txt
```

304 changes: 0 additions & 304 deletions ECRv2/src/cudnn/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions ECRv2/src/cudnn/README.md

This file was deleted.

Loading

0 comments on commit 3479af1

Please sign in to comment.