Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/Homework-2.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 102 additions & 0 deletions .idea/editor.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if(APPLE)
endif()


add_executable(matmul main_ans.cpp)
add_executable(matmul main.cpp)


if(OpenMP_CXX_FOUND)
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,19 @@ git push origin student-name
- Validate each implementation against `output.raw` to ensure correctness before optimizing.
- Use small test cases to debug your blocked and parallel implementations.

Good luck, and enjoy optimizing your matrix multiplication!
Good luck, and enjoy optimizing your matrix multiplication!

My Table:

| Test Case | Dimensions (m × n × p) | Naive Time (s) | Blocked Time (s) | Parallel Time (s) | Blocked Speedup | Parallel Speedup |
|-----------|------------------------|----------------|------------------|-------------------|-----------------|------------------|
| 0 | 64 × 64 × 64 | 0.000999928 | 0.00200009 | 0.00200009 | 0.49994× | 0.49994× |
| 1 | 128 × 64 × 128 | 0.00399995 | 0.00500011 | 0.000999928 | 0.799971× | 4.00024× |
| 2 | 100 × 128 × 56 | 0.00300002 | 0.00300002 | 0.00300002 | 1× | 1× |
| 3 | 128 × 64 × 128 | 0.00600004 | 0.00399995 | 0.00200009 | 1.50003× | 2.99988× |
| 4 | 32 × 128 × 32 | 0.00100017 | 0.000999928 | 0 | 1.00024× | inf× |
| 5 | 200 × 100 × 256 | 0.0210001 | 0.0209999 | 0.00700021 | 1.00001× | 2.99993× |
| 6 | 256 × 256 × 256 | 0.0650001 | 0.066 | 0.017 | 0.98485× | 3.82354× |
| 7 | 256 × 300 × 256 | 0.069 | 0.0839999 | 0.0180001 | 0.82143× | 3.83331× |
| 8 | 64 × 128 × 64 | 0.00300002 | 0.00300002 | 0.00300002 | 1× | 1× |
| 9 | 256 × 256 × 257 | 0.0810001 | 0.0669999 | 0.0669999 | 0.0669999× | 5.39997× |
Empty file.
Empty file.
Empty file.
Empty file.
Loading