Skip to content

Conversation

@davidberard98
Copy link
Contributor

@davidberard98 davidberard98 commented Sep 23, 2024

Stack from ghstack (oldest at bottom):

test script:

import locale

locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

import torch

print(f"{1234:n}")
locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

def fn(x, y):
    return (x + y) * 3249

    x, y = (torch.randn(33, 123123,
    device="cuda").mul(100).to(torch.int32) for _ in range(2))

    fn(x, y)
    fn_s = torch.jit.script(fn)

    for _ in range(4):
        fn_s(x, y)

        print(f"{1234:n}")

cc @EikanWang @jgong5

test script:

```python
import locale

locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

import torch

print(f"{1234:n}")
locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

def fn(x, y):
    return (x + y) * 3249

    x, y = (torch.randn(33, 123123,
    device="cuda").mul(100).to(torch.int32) for _ in range(2))

    fn(x, y)
    fn_s = torch.jit.script(fn)

    for _ in range(4):
        fn_s(x, y)

        print(f"{1234:n}")
```

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 23, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136459

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 0597bd5 with merge base 663e760 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added NNC release notes: jit release notes category labels Sep 23, 2024
test script:

```python
import locale

locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

import torch

print(f"{1234:n}")
locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

def fn(x, y):
    return (x + y) * 3249

    x, y = (torch.randn(33, 123123,
    device="cuda").mul(100).to(torch.int32) for _ in range(2))

    fn(x, y)
    fn_s = torch.jit.script(fn)

    for _ in range(4):
        fn_s(x, y)

        print(f"{1234:n}")
```

cc EikanWang jgong5

[ghstack-poisoned]
davidberard98 added a commit that referenced this pull request Sep 23, 2024
test script:

```python
import locale

locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

import torch

print(f"{1234:n}")
locale.setlocale(locale.LC_ALL, "")
print(f"{1234:n}")

def fn(x, y):
    return (x + y) * 3249

    x, y = (torch.randn(33, 123123,
    device="cuda").mul(100).to(torch.int32) for _ in range(2))

    fn(x, y)
    fn_s = torch.jit.script(fn)

    for _ in range(4):
        fn_s(x, y)

        print(f"{1234:n}")
```

ghstack-source-id: 6c23b15
Pull Request resolved: #136459
pytorchmergebot pushed a commit that referenced this pull request Sep 24, 2024
We had an internal report where the NNC-generated CUDA code had thousands separators in integer literals. Although I wasn't able to cleanly repro, I did come up with a hacky repro and verified that this fix works (see #136459).

Differential Revision: [D63278771](https://our.internmc.facebook.com/intern/diff/D63278771)

Pull Request resolved: #136458
Approved by: https://github.com/eellison
BoyuanFeng pushed a commit to BoyuanFeng/pytorch that referenced this pull request Sep 25, 2024
We had an internal report where the NNC-generated CUDA code had thousands separators in integer literals. Although I wasn't able to cleanly repro, I did come up with a hacky repro and verified that this fix works (see pytorch#136459).

Differential Revision: [D63278771](https://our.internmc.facebook.com/intern/diff/D63278771)

Pull Request resolved: pytorch#136458
Approved by: https://github.com/eellison
@github-actions github-actions bot deleted the gh/davidberard98/336/head branch October 25, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNC release notes: jit release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants