LINUX.ORG.RU

История изменений

Исправление router, (текущая версия) :

Интересно, код моего бывшего студента используется для STREAM. Неплохо для Джеффа.

Скорее, наоборот. Он залил код на гитхаб, т.к. у оригинала был только ftp

Размер массива маловат. Какая память и какой процессор используется?

процессор AMD Ryzen 9 7940HS, память 2 x 16 GiB PC5-44800

Размер массива, насколько я понял, задается при компиляции. и больше 100m не дает выбрать:

router@ubuntu2204-i1:~/src/STREAM$ make stream_c.exe
gcc -O2 -fopenmp -DSTREAM_ARRAY_SIZE=200000000 stream.c -o stream_c.exe
/tmp/ccOAYW5S.o: in function `main._omp_fn.7':
stream.c:(.text+0x42): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.6':
stream.c:(.text+0xcd): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.4':
stream.c:(.text+0x1db): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.3':
stream.c:(.text+0x236): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.2':
stream.c:(.text+0x2ba): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `checkSTREAMresults':
stream.c:(.text+0x57b): relocation truncated to fit: R_X86_64_PC32 against `.bss'
stream.c:(.text+0x9cc): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: stream_c.exe] Error 1

Исправление router, :

Интересно, код моего бывшего студента используется для STREAM. Неплохо для Джеффа.

Скорее, наоборот. Он залил код на гитхаб, т.к. у оригинала был только ftp

Размер массива, насколько я понял, задается при компиляции. и больше 100m не дает выбрать:

router@ubuntu2204-i1:~/src/STREAM$ make stream_c.exe
gcc -O2 -fopenmp -DSTREAM_ARRAY_SIZE=200000000 stream.c -o stream_c.exe
/tmp/ccOAYW5S.o: in function `main._omp_fn.7':
stream.c:(.text+0x42): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.6':
stream.c:(.text+0xcd): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.4':
stream.c:(.text+0x1db): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.3':
stream.c:(.text+0x236): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.2':
stream.c:(.text+0x2ba): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `checkSTREAMresults':
stream.c:(.text+0x57b): relocation truncated to fit: R_X86_64_PC32 against `.bss'
stream.c:(.text+0x9cc): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: stream_c.exe] Error 1

Исправление router, :

Интересно, код моего бывшего студента используется для STREAM. Неплохо для Джеффа.

Скорее, наоборот. Он залил код в гитхаб, т.к. у оригинала был только ftp

Размер массива, насколько я понял, задается при компиляции. и больше 100m не дает выбрать:

router@ubuntu2204-i1:~/src/STREAM$ make stream_c.exe
gcc -O2 -fopenmp -DSTREAM_ARRAY_SIZE=200000000 stream.c -o stream_c.exe
/tmp/ccOAYW5S.o: in function `main._omp_fn.7':
stream.c:(.text+0x42): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.6':
stream.c:(.text+0xcd): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.4':
stream.c:(.text+0x1db): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.3':
stream.c:(.text+0x236): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.2':
stream.c:(.text+0x2ba): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `checkSTREAMresults':
stream.c:(.text+0x57b): relocation truncated to fit: R_X86_64_PC32 against `.bss'
stream.c:(.text+0x9cc): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: stream_c.exe] Error 1

Исходная версия router, :

Размер массива, насколько я понял, задается при компиляции. и больше 100m не дает выбрать:

router@ubuntu2204-i1:~/src/STREAM$ make stream_c.exe
gcc -O2 -fopenmp -DSTREAM_ARRAY_SIZE=200000000 stream.c -o stream_c.exe
/tmp/ccOAYW5S.o: in function `main._omp_fn.7':
stream.c:(.text+0x42): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.6':
stream.c:(.text+0xcd): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.4':
stream.c:(.text+0x1db): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.3':
stream.c:(.text+0x236): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `main._omp_fn.2':
stream.c:(.text+0x2ba): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/tmp/ccOAYW5S.o: in function `checkSTREAMresults':
stream.c:(.text+0x57b): relocation truncated to fit: R_X86_64_PC32 against `.bss'
stream.c:(.text+0x9cc): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: stream_c.exe] Error 1