Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Commits
15b34fcf
Commit
15b34fcf
authored
2 months ago
by
Russel Arbore
Browse files
Options
Downloads
Patches
Plain Diff
persist tmp dir if clang/nvcc fail
parent
f847ee50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!143
Fork improvements
Pipeline
#201361
passed
2 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
juno_scheduler/src/pm.rs
+29
-5
29 additions, 5 deletions
juno_scheduler/src/pm.rs
with
29 additions
and
5 deletions
juno_scheduler/src/pm.rs
+
29
−
5
View file @
15b34fcf
...
@@ -780,8 +780,15 @@ impl PassManager {
...
@@ -780,8 +780,15 @@ impl PassManager {
.stdin
(
Stdio
::
piped
())
.stdin
(
Stdio
::
piped
())
.stdout
(
Stdio
::
piped
())
.stdout
(
Stdio
::
piped
())
.spawn
()
.spawn
()
.expect
(
"Error running clang. Is it installed?"
);
.expect
(
"PANIC: Error running clang. Is it installed?"
);
assert!
(
clang_process
.wait
()
.unwrap
()
.success
());
if
clang_process
.wait
()
.map
(|
status
|
!
status
.success
())
.unwrap_or
(
false
)
{
let
path
=
tmp_dir
.into_path
();
panic!
(
"PANIC: Clang failed to compile the LLVM IR module. Persisting temporary directory ({})."
,
path
.display
());
}
let
mut
ar_args
=
vec!
[
"crus"
,
&
output_archive
,
&
llvm_object
];
let
mut
ar_args
=
vec!
[
"crus"
,
&
output_archive
,
&
llvm_object
];
...
@@ -806,8 +813,15 @@ impl PassManager {
...
@@ -806,8 +813,15 @@ impl PassManager {
.arg
(
&
cuda_object
)
.arg
(
&
cuda_object
)
.arg
(
&
cuda_path
)
.arg
(
&
cuda_path
)
.spawn
()
.spawn
()
.expect
(
"Error running nvcc. Is it installed?"
);
.expect
(
"PANIC: Error running NVCC. Is it installed?"
);
assert!
(
nvcc_process
.wait
()
.unwrap
()
.success
());
if
nvcc_process
.wait
()
.map
(|
status
|
!
status
.success
())
.unwrap_or
(
false
)
{
let
path
=
tmp_dir
.into_path
();
panic!
(
"PANIC: NVCC failed to compile the CUDA module. Persisting temporary directory ({})."
,
path
.display
());
}
ar_args
.push
(
&
cuda_object
);
ar_args
.push
(
&
cuda_object
);
}
}
...
@@ -816,7 +830,17 @@ impl PassManager {
...
@@ -816,7 +830,17 @@ impl PassManager {
.args
(
&
ar_args
)
.args
(
&
ar_args
)
.spawn
()
.spawn
()
.expect
(
"Error running ar. Is it installed?"
);
.expect
(
"Error running ar. Is it installed?"
);
assert!
(
ar_process
.wait
()
.unwrap
()
.success
());
if
ar_process
.wait
()
.map
(|
status
|
!
status
.success
())
.unwrap_or
(
false
)
{
let
path
=
tmp_dir
.into_path
();
panic!
(
"PANIC: Ar failed to create a static library. Persisting temporary directory ({})."
,
path
.display
()
);
}
// Write the Rust runtime into a file.
// Write the Rust runtime into a file.
let
output_rt
=
format!
(
"{}/rt_{}.hrt"
,
output_dir
,
module_name
);
let
output_rt
=
format!
(
"{}/rt_{}.hrt"
,
output_dir
,
module_name
);
...
...
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