Intel Haswell lub Ivy Bridge z Linux'em - ktoś ma?

Zaczęty przez Rysiu, 13 Sierpień 2014, 20:28

Rysiu

Tak jak w temacie poszukuję komputerów z procesorem Intel Ivy Bridge lub Haswell działających pod kontrolą systemu operacyjnego Linux.

Nie chodzi nawet o dostęp zdalny. Wystarczy za pomocą GCC skompilować odpalić kilka programików (myślę, że będą 2).

Programy mają:
1. Wygenerować ciągi liczb losowych za pomocą odpowiednich funkcji wbudowanych w dany typ procesora (dlatego wymagane włącznie z Ivy Bridge w górę) wykorzystujących zjawisko szumu termicznego.
2. Sprawdzić wydajność generowania liczb losowych (także wielowątkowo).

Wygenerowany plik (myślę jakieś 1 GB) trzeba będzie mi przesłać.

Potrzebuję możliwie bogatej gamy procesorów więc jeżeli ktoś chce to może się zgłosić i pomóc  :attack:

Programów jeszcze nie napisałem więc nie ma napinki czasowej. Myślę, że nawet jeżeli ktoś planuje w najbliższych miesiącach wymianę procesora/komputera to się załapie bo jest sporo czasu.

matszpk

ja mam. OpenSUSE 13.1 64-bit, Core i5-i3470. już czeka  8)

kva.pl


sknd


andy101fah

Jeżeli może być przydatna poprzednia generacja Sandy Bridge to i7 2600K i ubuntu 14.04 64 bit jest do dyspozycji.

Troll81


Rysiu

Instrukcja odpalenia:

Należy pobrać dwa pliki:

drng.h
https://code.google.com/p/olib/source/browse/trunk/others/random/intel_thermal_noise/drng.h

random_noise_thermal_intel_generator.cpp
https://code.google.com/p/olib/source/browse/trunk/others/random/intel_thermal_noise/random_noise_thermal_intel_generator.cpp

Kompilujemy za pomocą polecenia:

g++ random_noise_thermal_intel_generator.cpp -o random_noise_thermal_intel_generator

Uruchamiamy poleceniem:

./random_noise_thermal_intel_generator 32 8192 temp.bin

Proszę o testy. Szczególnie na >= Ivy Bridge chociaż proszę o test także na starszych.

Uwaga: Podczas uruchamiania  program może wywalić błąd: "Illegal instruction" - proszę w takim przypadku o informację.

krzyszp

Co prawda to nie Ivy, ale:
root@ns3431952:~/R# g++ random_noise_thermal_intel_generator.cpp -o random_noise_thermal_intel_generator
random_noise_thermal_intel_generator.cpp:27:3: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:27:30: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:28:3: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:31:3: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:31:33: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:32:3: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:35:34: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:35:55: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:36:12: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:36:53: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:36:69: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:36:85: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:37:33: warning: multi-character character constant [-Wmultichar]
random_noise_thermal_intel_generator.cpp:37:77: warning: multi-character character constant [-Wmultichar]
random_noise_thermal_intel_generator.cpp:69:2: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:73:11: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:74:10: error: invalid suffix "px" on integer constant
random_noise_thermal_intel_generator.cpp:74:2: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:75:17: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:77:13: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:80:2: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:83:2: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:86:11: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:86:16: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:86:21: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:86:26: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:87:13: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:93:13: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:96:15: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:100:11: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:100:16: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:100:21: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:104:10: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:106:17: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:112:10: error: invalid suffix "px" on integer constant
random_noise_thermal_intel_generator.cpp:116:10: error: invalid suffix "px" on integer constant
random_noise_thermal_intel_generator.cpp:117:11: error: empty character constant
random_noise_thermal_intel_generator.cpp:122:10: error: invalid suffix "px" on integer constant
random_noise_thermal_intel_generator.cpp:131:26: warning: multi-character character constant [-Wmultichar]
random_noise_thermal_intel_generator.cpp:147:2: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:278:30: warning: multi-character character constant [-Wmultichar]
random_noise_thermal_intel_generator.cpp:309:3: error: invalid preprocessing directive #file_flipper
random_noise_thermal_intel_generator.cpp:310:3: error: invalid preprocessing directive #file_flipper
random_noise_thermal_intel_generator.cpp:311:3: error: invalid preprocessing directive #file_flipper
random_noise_thermal_intel_generator.cpp:312:3: error: invalid preprocessing directive #file_flipper
random_noise_thermal_intel_generator.cpp:700:1: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:704:1: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:708:1: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:712:1: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:720:1: error: stray â#â in program
random_noise_thermal_intel_generator.cpp:748:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:752:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:756:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:760:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:760:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:764:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:764:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:768:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:768:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:816:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:820:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:860:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:880:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:896:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:920:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:976:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:980:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:980:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:980:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1036:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1040:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1040:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1040:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1096:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1100:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1100:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1100:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1120:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1124:1: error: stray â\â in program
random_noise_thermal_intel_generator.cpp:1148:38: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1150:20: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1157:2: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1159:20: error: empty character constant
random_noise_thermal_intel_generator.cpp:1164:37: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1165:36: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1174:47: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1180:46: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1212:57: warning: multi-character character constant [-Wmultichar]
random_noise_thermal_intel_generator.cpp:1268:19: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1269:20: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1274:21: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1275:20: warning: hex escape sequence out of range [enabled by default]
random_noise_thermal_intel_generator.cpp:1275:20: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1277:22: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1325:3: error: invalid preprocessing directive #review_nav
random_noise_thermal_intel_generator.cpp:1326:14: error: invalid suffix "px" on integer constant
random_noise_thermal_intel_generator.cpp:1327:15: error: invalid suffix "px" on integer constant
random_noise_thermal_intel_generator.cpp:1328:14: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:1330:3: error: invalid preprocessing directive #review_nav
random_noise_thermal_intel_generator.cpp:1333:3: error: invalid preprocessing directive #review_nav
random_noise_thermal_intel_generator.cpp:1334:10: error: exponent has no digits
random_noise_thermal_intel_generator.cpp:1449:27: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1452:27: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1458:35: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1465:35: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1472:35: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1505:37: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1509:22: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1523:28: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1526:28: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1533:51: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1544:40: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1546:22: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1552:15: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1552:25: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:1554:297: error: empty character constant
random_noise_thermal_intel_generator.cpp:1554:301: warning: character constant too long for its type [enabled by default]
random_noise_thermal_intel_generator.cpp:5:1: error: expected unqualified-id before â<â token
random_noise_thermal_intel_generator.cpp:24:2: error: âvarâ does not name a type
random_noise_thermal_intel_generator.cpp:25:2: error: âvarâ does not name a type
random_noise_thermal_intel_generator.cpp:26:2: error: â_gaqâ does not name a type
random_noise_thermal_intel_generator.cpp:30:2: error: â_gaqâ does not name a type
random_noise_thermal_intel_generator.cpp:34:14: error: expected â)â before â{â token
random_noise_thermal_intel_generator.cpp:38:3: error: expected unqualified-id before â)â token
random_noise_thermal_intel_generator.cpp:40:2: error: expected unqualified-id before â<â token

Fajne zegarki :)
Należę do drużyny BOINC@Poland
 Moja wizytówka

RAD-Poland

Detected Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz "Intel(r) microarchitecture codename Ivy Bridge"

Cytatflags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xto
pology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb
xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

w prawdzie program sprawdza czy procesor posiada instrukcję RdRand  (rejestr ECX) ale można to sprawdzić samemu odczytując flagi "cpuinfo"

kompilacja bez problemów,
wynik
INFO: Your CPU support DRNG - RDRAND
The first three random numbers:
         -62776090 0 0

PROGRESS FINISHED
NO ERRORS

INFO: Your CPU support DRNG - RDRAND
The first three random numbers:
         1186887498 0 0

PROGRESS FINISHED
NO ERRORS


dziwne jest, że miały być trzy losowe liczby a jest jedna, a później dwa zera w obu próbach

   
WCG:
PG:         YOYO:

     

Rysiu

@Krzyszp

Nie mam pojęcia co jest nie tak. Zauważ, że błędy wysypał Ci kompilator do linii 1600, a kod ma tylko 110 linijek...


@RAD-Poland

Cytat: RAD-Poland w 15 Sierpień 2014, 15:43
dziwne jest, że miały być trzy losowe liczby a jest jedna, a później dwa zera w obu próbach
Plik wynikowy temp.bin ile w tym przypadku ma B?

RAD-Poland

Plik temp.bin ma 8192 bajty przy czym 4 pierwsze to wygenerowana liczba i do końca same zera 0x00

   
WCG:
PG:         YOYO:

     

sknd

Xeon E3-1230 v2

INFO: Your CPU support DRNG - RDRAND
The first three random numbers:
-1617087664 0 0

PROGRESS FINISHED
NO ERRORS


Rysiu

A teraz?

Najnowsza rewizja random_noise_thermal_intel_generator.cpp (r784) i drng.h (r786).

sknd

przy próbie kompilacji wypluwa sporo:

[ja@komp bin]$ g++ random_noise_thermal_intel_generator.cpp -o random_noise_thermal_intel_generator
random_noise_thermal_intel_generator.cpp:27:3: warning: character constant too long for its type
  ['siteTracker._setAccount', 'UA-18071-1'],
   ^
random_noise_thermal_intel_generator.cpp:27:30: warning: character constant too long for its type
  ['siteTracker._setAccount', 'UA-18071-1'],
                              ^
random_noise_thermal_intel_generator.cpp:28:3: warning: character constant too long for its type
  ['siteTracker._trackPageview']);
   ^
random_noise_thermal_intel_generator.cpp:31:3: warning: character constant too long for its type
  ['projectTracker._setAccount', 'UA-33869986-1'],
   ^
random_noise_thermal_intel_generator.cpp:31:33: warning: character constant too long for its type
  ['projectTracker._setAccount', 'UA-33869986-1'],
                                 ^
random_noise_thermal_intel_generator.cpp:32:3: warning: character constant too long for its type
  ['projectTracker._trackPageview']);
   ^
random_noise_thermal_intel_generator.cpp:35:34: warning: character constant too long for its type
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                                  ^
random_noise_thermal_intel_generator.cpp:35:55: warning: character constant too long for its type
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                                                       ^
random_noise_thermal_intel_generator.cpp:36:12: warning: character constant too long for its type
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            ^
random_noise_thermal_intel_generator.cpp:36:53: warning: character constant too long for its type
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                                                     ^
random_noise_thermal_intel_generator.cpp:36:69: warning: character constant too long for its type
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                                                                     ^
random_noise_thermal_intel_generator.cpp:36:85: warning: character constant too long for its type
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                                                                                     ^
random_noise_thermal_intel_generator.cpp:37:33: warning: multi-character character constant [-Wmultichar]
  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
                                 ^
random_noise_thermal_intel_generator.cpp:37:77: warning: multi-character character constant [-Wmultichar]
  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
                                                                             ^
random_noise_thermal_intel_generator.cpp:69:14: error: stray '#' in program
  background: #fff;
              ^
random_noise_thermal_intel_generator.cpp:73:11: error: exponent has no digits
  padding: .3em;
           ^
random_noise_thermal_intel_generator.cpp:74:10: error: invalid suffix "px" on integer constant
  border: 1px solid #999;
          ^
random_noise_thermal_intel_generator.cpp:74:20: error: stray '#' in program
  border: 1px solid #999;
                    ^
random_noise_thermal_intel_generator.cpp:75:17: error: exponent has no digits
  margin-bottom: .1em;
                 ^
random_noise_thermal_intel_generator.cpp:77:13: error: exponent has no digits
  max-width: 60em;
             ^
random_noise_thermal_intel_generator.cpp:80:14: error: stray '#' in program
  background: #ffa;
              ^
random_noise_thermal_intel_generator.cpp:83:14: error: stray '#' in program
  background: #e5ecf9;
              ^
random_noise_thermal_intel_generator.cpp:86:11: error: exponent has no digits
  padding: .5em .1em .1em .1em;
           ^
random_noise_thermal_intel_generator.cpp:86:16: error: exponent has no digits
  padding: .5em .1em .1em .1em;
                ^
random_noise_thermal_intel_generator.cpp:86:21: error: exponent has no digits
  padding: .5em .1em .1em .1em;
                     ^
random_noise_thermal_intel_generator.cpp:86:26: error: exponent has no digits
  padding: .5em .1em .1em .1em;
                          ^
random_noise_thermal_intel_generator.cpp:87:13: error: exponent has no digits
  max-width: 60em;
             ^
random_noise_thermal_intel_generator.cpp:93:13: error: exponent has no digits
  font-size: 1em;
             ^
random_noise_thermal_intel_generator.cpp:96:15: error: exponent has no digits
  margin-left: 1em;
               ^
random_noise_thermal_intel_generator.cpp:100:11: error: exponent has no digits
  padding: .5em .5em .5em 0;
           ^
random_noise_thermal_intel_generator.cpp:100:16: error: exponent has no digits
  padding: .5em .5em .5em 0;
                ^
random_noise_thermal_intel_generator.cpp:100:21: error: exponent has no digits
  padding: .5em .5em .5em 0;
                     ^
random_noise_thermal_intel_generator.cpp:104:10: error: exponent has no digits
  height: 10em;
          ^
random_noise_thermal_intel_generator.cpp:106:17: error: exponent has no digits
  margin-bottom: .5em;
                 ^
random_noise_thermal_intel_generator.cpp:112:10: error: invalid suffix "px" on integer constant
  height: 2px;
          ^
random_noise_thermal_intel_generator.cpp:116:10: error: invalid suffix "px" on integer constant
  height: 2px;
          ^
random_noise_thermal_intel_generator.cpp:117:11: error: empty character constant
  display: '';
           ^
random_noise_thermal_intel_generator.cpp:122:10: error: invalid suffix "px" on integer constant
  border: 1px solid white;
          ^
random_noise_thermal_intel_generator.cpp:131:26: warning: multi-character character constant [-Wmultichar]
  window.___gcfg = {lang: 'en'};
                          ^
random_noise_thermal_intel_generator.cpp:149:16: error: stray '@' in program
  ><u><b>sneszeb@gmail.com</b></u> <small>&#9660;</small></a>
                ^
random_noise_thermal_intel_generator.cpp:149:43: error: stray '#' in program
  ><u><b>sneszeb@gmail.com</b></u> <small>&#9660;</small></a>
                                           ^
random_noise_thermal_intel_generator.cpp:153:31: error: stray '#' in program
  ><u>My favorites</u> <small>&#9660;</small></a>
                               ^
random_noise_thermal_intel_generator.cpp:289:30: warning: multi-character character constant [-Wmultichar]
  if (query) { form.action += '%20' + query; }
                              ^
random_noise_thermal_intel_generator.cpp:320:3: error: invalid preprocessing directive #file_flipper
  #file_flipper { white-space: nowrap; padding-right: 2em; }
   ^
random_noise_thermal_intel_generator.cpp:321:3: error: invalid preprocessing directive #file_flipper
  #file_flipper.hidden { display: none; }
   ^
random_noise_thermal_intel_generator.cpp:322:3: error: invalid preprocessing directive #file_flipper
  #file_flipper .pagelink { color: #0000CC; text-decoration: underline; }
   ^
random_noise_thermal_intel_generator.cpp:323:3: error: invalid preprocessing directive #file_flipper
  #file_flipper #visiblefiles { padding-left: 0.5em; padding-right: 0.5em; }
   ^
random_noise_thermal_intel_generator.cpp:718:21: error: stray '#' in program
><td class="source"># include &lt;stdio.h&gt;<br></td></tr
                     ^
random_noise_thermal_intel_generator.cpp:722:21: error: stray '#' in program
><td class="source"># include &lt;stdint.h&gt;<br></td></tr
                     ^
random_noise_thermal_intel_generator.cpp:726:21: error: stray '#' in program
><td class="source"># include &lt;string.h&gt;<br></td></tr
                     ^
random_noise_thermal_intel_generator.cpp:730:21: error: stray '#' in program
><td class="source"># include &lt;stdlib.h&gt;<br></td></tr
                     ^
random_noise_thermal_intel_generator.cpp:738:21: error: stray '#' in program
><td class="source"># include &quot;drng.h&quot;<br></td></tr
                     ^
random_noise_thermal_intel_generator.cpp:766:1: error: stray '\' in program
><td class="source">  printf (&quot;Use: %s &lt;type&gt; &lt;number_of_B&gt; &lt;output_binary_file&gt;\n&quot;, argv[0]);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:770:1: error: stray '\' in program
><td class="source">  printf (&quot;&lt;type&gt; = {16, 32, 64}\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:774:1: error: stray '\' in program
><td class="source">  printf (&quot;&lt;number_of_B&gt; = must be:\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:778:1: error: stray '\' in program
><td class="source">  printf (&quot;\t a multiple of 2 (for &lt;type&gt; = 16),\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:778:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:782:1: error: stray '\' in program
><td class="source">  printf (&quot;\t a multiple of 4 (for &lt;type&gt; = 32),\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:782:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:786:1: error: stray '\' in program
><td class="source">  printf (&quot;\t a multiple of 8 (for &lt;type&gt; = 64),\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:786:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:834:1: error: stray '\' in program
><td class="source">  printf(&quot;ERROR: Invalid &lt;type&gt; argument\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:838:1: error: stray '\' in program
><td class="source">  printf (&quot;&lt;type&gt; = {16, 32, 64}\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:878:1: error: stray '\' in program
><td class="source">  printf(&quot;ERROR: Your CPU not support DRNG\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:898:1: error: stray '\' in program
><td class="source">  printf(&quot;INFO: Your CPU support DRNG - RDRAND\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:914:1: error: stray '\' in program
><td class="source">  printf(&quot;INFO: Your CPU support DRNG - RDRAND and RDSEED\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:938:1: error: stray '\' in program
><td class="source">  printf (&quot;Error save to the file: %s!\n&quot;, argv[2]);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:994:1: error: stray '\' in program
><td class="source">  printf(&quot;The first three random numbers:\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:998:1: error: stray '\' in program
><td class="source">  printf(&quot;\t %d %d %d\n\n&quot;, tab[0], tab[1], tab[2]);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:998:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:998:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:1054:1: error: stray '\' in program
><td class="source">  printf(&quot;The first three random numbers:\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:1058:1: error: stray '\' in program
><td class="source">  printf(&quot;\t %d %d %d\n\n&quot;, tab[0], tab[1], tab[2]);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:1058:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:1058:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:1114:1: error: stray '\' in program
><td class="source">  printf(&quot;The first three random numbers:\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:1118:1: error: stray '\' in program
><td class="source">  printf(&quot;\t %ld %ld %ld\n\n&quot;, tab[0], tab[1], tab[2]);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:1118:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:1118:1: error: stray '\' in program
random_noise_thermal_intel_generator.cpp:1138:1: error: stray '\' in program
><td class="source"> printf(&quot;PROGRESS FINISHED\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:1142:1: error: stray '\' in program
><td class="source"> printf(&quot;NO ERRORS\n&quot;);<br></td></tr
^
random_noise_thermal_intel_generator.cpp:1166:38: warning: character constant too long for its type
  var newTR = document.getElementById('gr_svn786_' + num);
                                      ^
random_noise_thermal_intel_generator.cpp:1168:20: warning: character constant too long for its type
  newTR.className = 'undermouse';
                    ^
random_noise_thermal_intel_generator.cpp:1175:2: warning: character constant too long for its type
  'gr_svn786_' + lineNumUnderMouse);
  ^
random_noise_thermal_intel_generator.cpp:1177:20: error: empty character constant
  oldTR.className = '';
                    ^
random_noise_thermal_intel_generator.cpp:1182:37: warning: character constant too long for its type
  var numsGenState = {table_base_id: 'nums_table_'};
                                     ^
random_noise_thermal_intel_generator.cpp:1183:36: warning: character constant too long for its type
  var srcGenState = {table_base_id: 'src_table_'};
                                    ^
random_noise_thermal_intel_generator.cpp:1192:47: warning: character constant too long for its type
  numsGenState.table = document.getElementById('nums_table_0');
                                               ^
random_noise_thermal_intel_generator.cpp:1198:46: warning: character constant too long for its type
  srcGenState.table = document.getElementById('src_table_0');
                                              ^
random_noise_thermal_intel_generator.cpp:1230:57: warning: multi-character character constant [-Wmultichar]
  numRow.firstChild.style.height = srcRow.offsetHeight + 'px';
                                                         ^
random_noise_thermal_intel_generator.cpp:1286:19: warning: character constant too long for its type
  var detail_url = '/p/olib/source/detail?r=784&spec=svn786';
                   ^
random_noise_thermal_intel_generator.cpp:1287:20: warning: character constant too long for its type
  var publish_url = '/p/olib/source/detail?r=784&spec=svn786#publish';
                    ^
random_noise_thermal_intel_generator.cpp:1292:21: warning: character constant too long for its type
  changed_paths.push('/trunk/others/random/intel_thermal_noise/drng.h');
                     ^
random_noise_thermal_intel_generator.cpp:1293:20: warning: hex escape sequence out of range
  changed_urls.push('/p/olib/source/browse/trunk/others/random/intel_thermal_noise/drng.h?r\x3d784\x26spec\x3dsvn786');
                    ^
random_noise_thermal_intel_generator.cpp:1293:20: warning: character constant too long for its type
random_noise_thermal_intel_generator.cpp:1296:21: warning: character constant too long for its type
  changed_paths.push('/trunk/others/random/intel_thermal_noise/random_noise_thermal_intel_generator.cpp');
                     ^
random_noise_thermal_intel_generator.cpp:1297:20: warning: hex escape sequence out of range
  changed_urls.push('/p/olib/source/browse/trunk/others/random/intel_thermal_noise/random_noise_thermal_intel_generator.cpp?r\x3d784\x26spec\x3dsvn786');
                    ^
random_noise_thermal_intel_generator.cpp:1297:20: warning: character constant too long for its type
random_noise_thermal_intel_generator.cpp:1299:22: warning: character constant too long for its type
  var selected_path = '/trunk/others/random/intel_thermal_noise/random_noise_thermal_intel_generator.cpp';
                      ^
random_noise_thermal_intel_generator.cpp:1347:3: error: invalid preprocessing directive #review_nav
  #review_nav {
   ^
random_noise_thermal_intel_generator.cpp:1348:14: error: invalid suffix "px" on integer constant
  border-top: 3px solid white;
              ^
random_noise_thermal_intel_generator.cpp:1349:15: error: invalid suffix "px" on integer constant
  padding-top: 6px;
               ^
random_noise_thermal_intel_generator.cpp:1350:14: error: exponent has no digits
  margin-top: 1em;
              ^
random_noise_thermal_intel_generator.cpp:1352:3: error: invalid preprocessing directive #review_nav
  #review_nav td {
   ^
random_noise_thermal_intel_generator.cpp:1355:3: error: invalid preprocessing directive #review_nav
  #review_nav select {
   ^
random_noise_thermal_intel_generator.cpp:1356:10: error: exponent has no digits
  margin: .5em 0;
          ^
random_noise_thermal_intel_generator.cpp:1480:27: warning: character constant too long for its type
  prev.element.className = 'cursor_stop cursor_hidden';
                           ^
random_noise_thermal_intel_generator.cpp:1483:27: warning: character constant too long for its type
  next.element.className = 'cursor_stop cursor';
                           ^
random_noise_thermal_intel_generator.cpp:1489:35: warning: character constant too long for its type
  updateCursorForCell(data.cellId, 'cursor_stop cursor_hidden');
                                   ^
random_noise_thermal_intel_generator.cpp:1496:35: warning: character constant too long for its type
  updateCursorForCell(data.cellId, 'cursor_stop cursor_hidden');
                                   ^
random_noise_thermal_intel_generator.cpp:1503:35: warning: character constant too long for its type
  updateCursorForCell(data.cellId, 'nocursor');
                                   ^
random_noise_thermal_intel_generator.cpp:1536:37: warning: character constant too long for its type
  var elements = CR_getElements('*', 'cursor_stop');
                                     ^
random_noise_thermal_intel_generator.cpp:1540:22: warning: character constant too long for its type
  element.className = 'cursor_stop cursor_hidden';
                      ^
random_noise_thermal_intel_generator.cpp:1554:28: warning: character constant too long for its type
  kibbles.skipper.setOption('padding_top', 50);
                            ^
random_noise_thermal_intel_generator.cpp:1557:28: warning: character constant too long for its type
  kibbles.skipper.setOption('padding_bottom', 100);
                            ^
random_noise_thermal_intel_generator.cpp:1564:51: warning: character constant too long for its type
  'r', function() { window.location = detail_url + '#publish'; });
                                                   ^
random_noise_thermal_intel_generator.cpp:1575:40: warning: character constant too long for its type
  var element = document.getElementById('review_instr');
                                        ^
random_noise_thermal_intel_generator.cpp:1577:22: warning: character constant too long for its type
  element.className = 'opened';
                      ^
random_noise_thermal_intel_generator.cpp:1583:15: warning: character constant too long for its type
  var paths = {'svn786': '/trunk/others/random/intel_thermal_noise/random_noise_thermal_intel_generator.cpp'}
               ^
random_noise_thermal_intel_generator.cpp:1583:25: warning: character constant too long for its type
  var paths = {'svn786': '/trunk/others/random/intel_thermal_noise/random_noise_thermal_intel_generator.cpp'}
                         ^
random_noise_thermal_intel_generator.cpp:1585:381: error: empty character constant
  {"assetVersionPath": "https://ssl.gstatic.com/codesite/ph/13997016681179179006", "relativeBaseUrl": "", "assetHostPath": "https://ssl.gstatic.com/codesite/ph", "domainName": null, "loggedInUserEmail": "sneszeb@gmail.com", "projectName": "olib", "profileUrl": "/u/104755836460438697109/", "projectHomeUrl": "/p/olib", "token": "ABZ6GAeTuVdEdF6F7fgYeW77UazQYyKwxw:1408119334477"}, '', 'svn786', paths,
                                                                                                                                                                                                                                                                                                                                                                                             ^
random_noise_thermal_intel_generator.cpp:1585:385: warning: character constant too long for its type
  {"assetVersionPath": "https://ssl.gstatic.com/codesite/ph/13997016681179179006", "relativeBaseUrl": "", "assetHostPath": "https://ssl.gstatic.com/codesite/ph", "domainName": null, "loggedInUserEmail": "sneszeb@gmail.com", "projectName": "olib", "profileUrl": "/u/104755836460438697109/", "projectHomeUrl": "/p/olib", "token": "ABZ6GAeTuVdEdF6F7fgYeW77UazQYyKwxw:1408119334477"}, '', 'svn786', paths,
                                                                                                                                                                                                                                                                                                                                                                                                 ^
random_noise_thermal_intel_generator.cpp:5:1: error: expected unqualified-id before '<' token
<!DOCTYPE html>
^
random_noise_thermal_intel_generator.cpp:24:2: error: 'var' does not name a type
  var CS_env = {"assetVersionPath": "https://ssl.gstatic.com/codesite/ph/13997016681179179006", "relativeBaseUrl": "", "assetHostPath": "https://ssl.gstatic.com/codesite/ph", "domainName": null, "loggedInUserEmail": "sneszeb@gmail.com", "projectName": "olib", "profileUrl": "/u/104755836460438697109/", "projectHomeUrl": "/p/olib", "token": "ABZ6GAeTuVdEdF6F7fgYeW77UazQYyKwxw:1408119334477"};
  ^
random_noise_thermal_intel_generator.cpp:25:2: error: 'var' does not name a type
  var _gaq = _gaq || [];
  ^
random_noise_thermal_intel_generator.cpp:26:2: error: '_gaq' does not name a type
  _gaq.push(
  ^
random_noise_thermal_intel_generator.cpp:30:2: error: '_gaq' does not name a type
  _gaq.push(
  ^
random_noise_thermal_intel_generator.cpp:34:14: error: expected ')' before '{' token
  (function() {
              ^
random_noise_thermal_intel_generator.cpp:38:3: error: expected unqualified-id before ')' token
  })();
   ^
random_noise_thermal_intel_generator.cpp:40:2: error: expected unqualified-id before '<' token
  </script>

krzyszp

Zrobiłeś ten sam błąd, co ja - ściągnąłeś cała stronę internetową, zamiast tylko kod źródłowy ;)

Na i7 950:
INFO: Your CPU support DRNG - RDRAND
Illegal instruction

Fajne zegarki :)
Należę do drużyny BOINC@Poland
 Moja wizytówka

matszpk

Rozszerzenia (czyli RDRAND) z których program korzysta są dopiero od Ivy Bridge. Na starszych nie pójdzie. dlatego Rysiu prosił o maszyny z Ivy Bridge lub nowszym.
U mnie program wyświetlił podobny komunikat:
INFO: Your CPU support DRNG - RDRAND
The first three random numbers:
         1953446555 0 0

PROGRESS FINISHED
NO ERRORS


dla parametrów 32 8192 temp.bin

sknd

racja  :facepalm2:


INFO: You have the Intel CPU
INFO: Your CPU support DRNG - RDRAND
The first three random numbers:
1478519382 0 0

PROGRESS FINISHED
NO ERRORS

matszpk

rysiu. w kodzie jest prosty błąd  :o :
if(support_flag = 0)
{
printf("ERROR: Your CPU not support DRNG\n");
return 0;
}
else if(support_flag = DRNG_HAS_RDRAND)
{
printf("INFO: Your CPU support DRNG - RDRAND\n");
}
else if(support_flag = DRNG_HAS_RDSEED)
{
printf("INFO: Your CPU support DRNG - RDRAND and RDSEED\n");
}


zamiast "==" jest "=", czyli przypisanie, więc warunek będzie zawsze spełniony. poprawisz te błędy?

Rysiu

Już poprawiłem.

Jak możesz to pobierz kod obydwu plików jeszcze raz (drng.h też się zmieniło), skompiluj i odpal.

Teraz martwię się tymi dwoma zerami:

The first three random numbers:
         1953446555 0 0


Kurczę to powinny być liczby losowe... Niby w nowej rewizji drng.h to poprawiłem ale coś nie widać efektów...