Skip to content

Commit

Permalink
remove legacy comment
Browse files Browse the repository at this point in the history
  • Loading branch information
karpathy committed May 14, 2024
1 parent 222d59f commit 2d43e5b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dev/cuda/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ void validate_result(D* device_result, const T* cpu_reference, const char* name,
exit(EXIT_FAILURE);
}

// reset the result pointer, so we can chain multiple tests and don't miss trivial errors,
// like the kernel not writing to part of the result.
// cudaMemset(device_result, 0, num_elements * sizeof(T));
// AK: taking this out, ~2 hours of my life was spent finding this line

free(out_gpu);
}

Expand Down

0 comments on commit 2d43e5b

Please sign in to comment.