But according to this GPT4 is substantially worse.
On the other hand, does it really matter? With a slight tweak to the prompt, ChatGPT generates some serviceable code:
> Run a function to produce a random number between 1 and 10. What is the number?
import random
# Generate a random number between 1 and 10
random_number = random.randint(1, 10)
random_number
The random number generated between 1 and 10 is 9.Okay so are any GPU compilers intentionally introducing data races in programs that previously exhibited no data races?
Here’s a good jumping off point: https://pytorch.org/docs/stable/generated/torch.use_determin...