Skip to content
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

[BUG] Fix bug in cast in quantization #480

Merged
merged 1 commit into from
Dec 21, 2024
Merged

[BUG] Fix bug in cast in quantization #480

merged 1 commit into from
Dec 21, 2024

Conversation

vadiklyutiy
Copy link
Collaborator

[BUG] Fix bug in cast in quantization

@vadiklyutiy vadiklyutiy merged commit 04332b7 into main Dec 21, 2024
3 of 4 checks passed
vadiklyutiy added a commit that referenced this pull request Dec 21, 2024
vadiklyutiy added a commit that referenced this pull request Dec 21, 2024
vadiklyutiy pushed a commit that referenced this pull request Dec 26, 2024
### PR Description

This PR addresses the issue outlined in [Issue
#227](CentML/hidet#227).

#### Problem:
After investigation, the problem arises because multiple threads were
writing to the same `fused_ir` directory. This led to race conditions
where one thread might attempt to delete a file that another thread had
already removed. Moreover, all candidates were being saved into a single
directory, resulting in overwriting of files across different threads.

#### Solution:
This commit introduces the following changes to resolve the issue:

1. **Separate Directories for Each Candidate**: 
- Each candidate now gets its own directory under `fuse_ir`, preventing
conflicts and file overwriting.
   
2. **Subdirectories for IRs by Candidate**:
- The `ir` files are now stored in separate subdirectories under
`candidate/ir`, ensuring that files from different candidates are
isolated.

3. **Test Case Added**:
- A new test case was introduced to verify that the number of folders in
`fuse_ir` matches the total number of candidates listed in
`candidate.txt`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant