-
-
Notifications
You must be signed in to change notification settings - Fork 65
Bugfix clearing stdout stderr on finish & cleanup #522
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
Conversation
…tinmodrak) - cleanup process_output, process_error_output code
@@ -371,36 +371,6 @@ build_cmdstan <- function(dir, | |||
) | |||
} | |||
|
|||
# Removes files that are used to simplify switching to using threading, opencl or mpi. | |||
clean_compile_helper_files <- function() { |
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.
This has not been needed for some time, we just haven't cleaned it up.
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.
Awesome, always nice to delete a bunch of code!
} | ||
stancflags_val <- paste0(stancflags_val, include_paths_flag, include_paths, " ") | ||
} | ||
stancflags_val <- include_paths_stanc3_args(include_paths) |
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.
This code is repeated in check_syntax, so I added a utility function with a test.
@@ -60,9 +60,7 @@ is_rosetta2 <- function() { | |||
|
|||
# Returns the type of make command to use to compile depending on the OS | |||
make_cmd <- function() { | |||
# CmdStan 2.21 introduced TBB that requires mingw32-make on Windows | |||
ver <- .cmdstanr$VERSION | |||
if (os_is_windows() && (is.null(ver) || ver >= "2.21")) { |
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.
This check for versions is not needed. CmdStan 2.20 and earlier will still work with mingw32-make (its just that 2.21 and on requires mingw32-make). The toolchain installation for Windows is made in such a way that users will always have mingw32-make (3.x or 4.x). Not to mention I doubt anyone uses CmdStan 2.20 with CmdStanR :)
Codecov Report
@@ Coverage Diff @@
## master #522 +/- ##
==========================================
- Coverage 92.78% 91.19% -1.60%
==========================================
Files 12 12
Lines 3062 3031 -31
==========================================
- Hits 2841 2764 -77
- Misses 221 267 +46
Continue to review full report at Codecov.
|
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.
Looks good!
@@ -371,36 +371,6 @@ build_cmdstan <- function(dir, | |||
) | |||
} | |||
|
|||
# Removes files that are used to simplify switching to using threading, opencl or mpi. | |||
clean_compile_helper_files <- function() { |
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.
Awesome, always nice to delete a bunch of code!
Summary
Fix #517 by applying the suggestion by @martinmodrak. Fixes #493. Also a bit of cleanup (see comment).
Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Rok Češnovar
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: