Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gpusched_parser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GPUSched
gpusched_parser
Commits
cd7036b2
Commit
cd7036b2
authored
1 year ago
by
Nordine Feddal
Browse files
Options
Downloads
Patches
Plain Diff
call init functions
parent
44215ba9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.py
+9
-0
9 additions, 0 deletions
src/main.py
with
9 additions
and
0 deletions
src/main.py
+
9
−
0
View file @
cd7036b2
...
...
@@ -73,6 +73,13 @@ def write_timer_initialization():
return
chrono_dump
def
init_kernel_function_call
():
dump
=
"
\t
// pre-kernels initialization
\n
"
for
task
in
list_gpu_tasks_object
:
dump
+=
"
\t
{k_init_name};
\n
"
.
format
(
k_init_name
=
task
.
init_function_name
)
dump
+=
"
\n
"
return
dump
def
write_main
(
args
):
with
open
(
args
.
output_file
,
"
a
"
)
as
outFile
:
# Start message
...
...
@@ -90,6 +97,8 @@ def write_main(args):
"
\t
printf(
\"
Start the execution of GPUSCHED order
\\
n
\"
);
\n
"
"
\t
printf(
\"
There is %d steps to execute
\"
, steps.size()
\\
n);
\n
"
)
outFile
.
write
(
init_kernel_function_call
())
outFile
.
write
(
generate_cudaStreams
())
outFile
.
write
(
write_timer_initialization
())
outFile
.
write
(
generate_main_unroll_step
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment