Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Fix for rsp files on Windows. #100

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Fix for rsp files on Windows. #100

merged 2 commits into from
Aug 14, 2023

Conversation

cjatin
Copy link

@cjatin cjatin commented Jun 29, 2023

File names starting with @ can not be escaped.

This is needed for really long command lines with tests on windows

@@ -371,6 +371,15 @@ BEGIN
$hsacoVersion = $arg;
$swallowArg = 1;
}
if($arg =~ /\.rsp$/) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have an example response file that this patch is trying to fix? What is the error without this patch?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error that we see is one hip-tests, GraphTests have grown in size and the final linkage line is too big on windows.

For now we have fixed it via a hack: ROCm/hip-tests@fe9515a basically split it in two exe till we have a fix in place.

To fix this we need to enable rsp files inside hip-tests CMake (done via: ROCm/hip-tests#360 ) but before that hipcc needs to escape rsp files and add proper encoding for windows.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: we got same error for memory tests as well: ROCm/hip-tests#362

Copy link
Collaborator

@kzhuravl kzhuravl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please run the psdb before merging.

@kzhuravl kzhuravl merged commit f30d151 into ROCm:develop Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants