-
Notifications
You must be signed in to change notification settings - Fork 40
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
[FEA] AutoTuner warns that non-utf8 may not support some GPU expressions #736
Conversation
Signed-off-by: Ahmed Hussein (amahussein) <[email protected]> Fixes NVIDIA#713, Fixes NVIDIA#734 This PR changes the behavior of the AutTuner to display a comment when the file-encoding of an application is set to a value that is not "utf-8". The changes also improves the extraction of the RAPIDS jars values. *Changes for 713*: - Added a new field in `ApplicationSummaryInfo` that represents the systemProperties - Capture SystemProperties in the App in order to be able to check the file-encoding - Moved map properties to `CacheableProps` so that it can be used by the Qualification as well. - Moved String-conversion methods from AutTuner to StringUtils - Moved `getEventFromJsonMethod` to EventUtils object - Added a new UnitTest for the AutoTuner - Updated ApplicationInfoSuite unitTests *Changes for 734*: - Fixed the implementation of `CollectInformation.getRapidsJARInfo`
// No need to capture all the properties in memory. We only capture important ones. | ||
systemProperties ++= event.environmentDetails("System Properties").toMap.filterKeys( | ||
RETAINED_SYSTEM_PROPS.contains(_)) | ||
|
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.
nit: Extra line
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.
Done!
case encoding => | ||
if (!ToolUtils.isFileEncodingRecommended(encoding)) { |
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.
Can we move if
condition to case encoding
statement?
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.
Done!
def handleEnvUpdateForCachedProps(event: SparkListenerEnvironmentUpdate): Unit = { | ||
val sparkProperties = event.environmentDetails("Spark Properties").toMap | ||
|
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.
nit: Extra line
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.
Done!
Signed-off-by: Ahmed Hussein (amahussein) <[email protected]>
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.
Overall LGTM. Just a couple of Nits. Thanks @amahussein for refactoring some of the code!
core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/CollectInformation.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/com/nvidia/spark/rapids/tool/profiling/AutoTunerSuite.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Ahmed Hussein (amahussein) <[email protected]>
Signed-off-by: Ahmed Hussein (amahussein) [email protected]
Fixes #713, Fixes #734
This PR changes the behavior of the AutoTuner to display a comment when the file-encoding of an application is set to a value that is not "utf-8".
The AutoTuner will generate the folllowing line:
The changes also improves the extraction of the RAPIDS jars values.
Changes for 713:
ApplicationSummaryInfo
that represents the systemPropertiesCacheableProps
so that it can be used by the Qualification as well.getEventFromJsonMethod
to EventUtils objectApplicationInfoSuite
unitTestsChanges for 734:
CollectInformation.getRapidsJARInfo