-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ivan khromov #1
base: master
Are you sure you want to change the base?
Ivan khromov #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you must change commit authors!!!
" cores: int = 1\n", | ||
" threads: int = 1\n", | ||
"# running parameters \n", | ||
"@dataclass\n", | ||
"class run:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" cores: int = 1\n", | |
" threads: int = 1\n", | |
"# running parameters \n", | |
"@dataclass\n", | |
"class run:\n", | |
" cores: int = 1\n", | |
" threads: int = 1\n", | |
"\n", | |
"# running parameters \n", | |
"@dataclass\n", | |
"class run:\n", |
tests/opencl/j_stat/statistic.ipynb
Outdated
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"path_to_vortex = \"/home/jblab/ivan_khromov/release/vortex\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use fixed absolute path! It must be calculated from relative.
tests/opencl/j_stat/statistic.ipynb
Outdated
" if \"FAILED\" in line: \n", | ||
" error_message = error_verification(run_params, line[line.find(\"FAILED! - \"):])\n", | ||
" if \"Error\" in line:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to check subprocess return code
tests/opencl/j_stat/statistic.ipynb
Outdated
" with open(f\"{path_to_vortex}/tests/opencl/{kernel_name}/main.cc\", 'a') as main:\n", | ||
" main.write('')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use Path.touch
tests/opencl/j_stat/statistic.ipynb
Outdated
"def create_common_h (params: dict, kernel_name: str):\n", | ||
" file_name = f\"{path_to_vortex}/tests/opencl/{kernel_name}/common.h\"\n", | ||
" with open(file_name, 'w') as file:\n", | ||
" text = \"#ifndef COMMON_H\\n\" + \"#define COMMON_H\\n\" + \"\\n\" \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" text = \"#ifndef COMMON_H\\n\" + \"#define COMMON_H\\n\" + \"\\n\" \n", | |
" file.write(\"#ifndef COMMON_H\\n\" + \"#define COMMON_H\\n\" + \"\\n\") \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same issue wit other lines
b62ee90
to
d5a9e5c
Compare
e134ad1
to
8520104
Compare
Added four matrix multiplication variants from the tutorial (https://cnugteren.github.io/tutorial/pages/page1.html). The first is naive, the second is related to local memory, the third is about enhancing performance with a single thread, and the fourth uses vector types. A Jupyter notebook has been added for automating the execution and adjustment of vortex parameters, as well as gathering launch statistics in a data frame.