Skip to content

Commit

Permalink
Merge pull request #434 from ngc92/profile-fix
Browse files Browse the repository at this point in the history
initialize multi_gpu_config so profile doesn't crash
  • Loading branch information
karpathy authored May 19, 2024
2 parents 5a26799 299ce65 commit 00c291c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions profile_gpt2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 49,7 @@ int main(int argc, char *argv[]) {

// override number of layers to 1 because all layers repeat the same kernels, only profile once
model.config.num_layers = 1;
set_zero_configs(&multi_gpu_config, 0, model.num_parameters);

// do a training step
gpt2_forward(&model, x, y, B, T);
Expand Down

0 comments on commit 00c291c

Please sign in to comment.