Skip to content

Instantly share code, notes, and snippets.

@paulocanedo
Created August 31, 2018 21:01
Show Gist options
  • Save paulocanedo/16eb0fd3aeeb3c53452463b9199b80a6 to your computer and use it in GitHub Desktop.
Save paulocanedo/16eb0fd3aeeb3c53452463b9199b80a6 to your computer and use it in GitHub Desktop.
#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