Created
August 31, 2018 21:01
-
-
Save paulocanedo/16eb0fd3aeeb3c53452463b9199b80a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define GB 1024 * 1024 * 1024 | |
| int main() { | |
| printf("hello world!\n"); | |
| printf("%d\n", GB); | |
| for(int a=0; a < 4; a++) { | |
| float* value = (float*) calloc(GB, sizeof(float)); | |
| for(long i=0; i < GB; i++) { | |
| value[i] = 1.0f; | |
| } | |
| } | |
| getchar(); | |
| return 1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment