![]() |
Completed 4070-4071:
[code] 4070-4071e15 114 kgaps, largest 1166 @ 4070929441813272767 [/code] On to 4071-4072... |
Reserving 4600e15 to 4620e15
|
[QUOTE=Antonio;460919]I think the problem is that qsort expects one of three possible values from your compare i.e.
a > b (return +ve integer) a = b (return 0) a < b (return -ve integer) your comp() can only return a>b or a=b since a = b cannot occur in our case we should replace: [CODE]int comp(const void *a,const void *b){ GAP *gap1=(GAP*)a; GAP *gap2=(GAP*)b; return(gap2->p1<gap1->p1); } [/CODE]with: [CODE]int comp(const void *a, const void *b){ GAP *gap1=(GAP*)a; GAP *gap2=(GAP*)b; // if (gap2->p1 == gap1->p1) return 0; return((gap2->p1 < gap1->p1) ? 1 : -1); } [/CODE][/QUOTE] You can go one step further: the comparison function doesn't have to return +/-1 just some number >0 or <0. So you could do something like this (untested): [code]int comp(const void *a, const void *b){ GAP *gap1=(GAP*)a; GAP *gap2=(GAP*)b; return gap1->p1 - gap2->p1; } [/code] |
[QUOTE=ldesnogu;461023]You can go one step further: the comparison function doesn't have to return +/-1 just some number >0 or <0. So you could do something like this (untested):
[code]int comp(const void *a, const void *b){ GAP *gap1=(GAP*)a; GAP *gap2=(GAP*)b; return gap1->p1 - gap2->p1; } [/code][/QUOTE] Except that p1 and p2 are ui64, quicksort expects an int, I believe, which is why it was done as shown (so there's no chance of an overflow). |
[QUOTE=Antonio;461032]Except that p1 and p2 are ui64, quicksort expects an int, I believe, which is why it was done as shown (so there's no chance of an overflow).[/QUOTE]
Ha missed that, forget what I wrote :) |
1 Attachment(s)
4096-4100 done.
|
4184-4196e15 and 4400-4004e15 completed:
[CODE]4184-4185e15 84 kgaps, largest 1182 @ 4184105947076030317 4185-4186e15 106 kgaps, largest 1140 @ 4185221968738606721 4186-4187e15 81 kgaps, largest 1234 @ 4186935144258909583 4187-4188e15 80 kgaps, largest 1140 @ 4187053848896995261 4188-4189e15 93 kgaps, largest 1196 @ 4188112887548189927 4189-4190e15 96 kgaps, largest 1238 @ 4189208379676421609 4190-4191e15 96 kgaps, largest 1248 @ 4190594469897518143 4191-4192e15 81 kgaps, largest 1178 @ 4191718705578065759 4192-4193e15 86 kgaps, largest 1170 @ 4192792837363597297 4193-4194e15 69 kgaps, largest 1184 @ 4193061283696301363 4194-4195e15 75 kgaps, largest 1188 @ 4194797531040686093 4195-4196e15 89 kgaps, largest 1224 @ 4195035377750178967 4400-4401e15 90 kgaps, largest 1170 @ 4400590877408154797 4401-4402e15 98 kgaps, largest 1270 @ 4401169548456297013 4402-4403e15 79 kgaps, largest 1284 @ 4402195023349518107 4403-4404e15 68 kgaps, largest 1246 @ 4403177805154279381 [/CODE] |
Anyone here tried the binaries on AMD Ryzen machines?
|
4300-4399 will be complete later today. Results at [URL="http://www.mersenneforum.org/showpost.php?p=460275&postcount=163"]post 163[/URL].
Taking 4700-4799e15. [code] 4700e15 36 gaps >= 1050 max: 1192 4700348399859588367 4701e15 30 gaps >= 1050 max: 1200 4701939873176098661 4702e15 28 gaps >= 1050 max: 1198 4702302679922458213 4703e15 27 gaps >= 1050 max: 1196 4703345653565948531 4704e15 28 gaps >= 1050 max: 1182 4704672638506128241 4705e15 37 gaps >= 1050 max: 1218 4705500419580437443 4706e15 30 gaps >= 1050 max: 1308 4706452766579003281 4707e15 29 gaps >= 1050 max: 1170 4707096188735710171 4708e15 37 gaps >= 1050 max: 1152 4708544496100267037 4709e15 45 gaps >= 1050 max: 1374 4709939493140870509 4710e15 45 gaps >= 1050 max: 1260 4710391266666071587 4711e15 25 gaps >= 1050 max: 1192 4711583600310715627 4712e15 20 gaps >= 1050 max: 1240 4712955479320536829 4713e15 37 gaps >= 1050 max: 1308 4713856225411581673 4714e15 42 gaps >= 1050 max: 1260 4714484841208689671 4715e15 41 gaps >= 1050 max: 1212 4715716518009761489 4716e15 39 gaps >= 1050 max: 1266 4716972179498331017 4717e15 34 gaps >= 1050 max: 1186 4717871334828786457 4718e15 34 gaps >= 1050 max: 1206 4718053544317530601 4719e15 35 gaps >= 1050 max: 1160 4719220153467276227 4720e15 36 gaps >= 1050 max: 1206 4720862346967035091 4721e15 29 gaps >= 1050 max: 1260 4721139465819041323 4722e15 38 gaps >= 1050 max: 1218 4722911503940692193 4723e15 37 gaps >= 1050 max: 1268 4723736685140198951 4724e15 33 gaps >= 1050 max: 1192 4724724160999316809 4725e15 23 gaps >= 1050 max: 1344 4725029836591901519 4726e15 27 gaps >= 1050 max: 1276 4726827575164405213 4727e15 32 gaps >= 1050 max: 1248 4727572574106226711 4728e15 37 gaps >= 1050 max: 1190 4728619861925933903 4729e15 34 gaps >= 1050 max: 1290 4729969779831049681 4730e15 26 gaps >= 1050 max: 1116 4730975274536806787 4731e15 29 gaps >= 1050 max: 1154 4731154376151649169 4732e15 40 gaps >= 1050 max: 1312 4732600249465863001 4733e15 36 gaps >= 1050 max: 1190 4733043473635812947 4734e15 35 gaps >= 1050 max: 1210 4734176406333636217 4735e15 31 gaps >= 1050 max: 1152 4735991362830488087 4736e15 37 gaps >= 1050 max: 1168 4736226492690199009 4737e15 36 gaps >= 1050 max: 1206 4737339023708519887 4738e15 29 gaps >= 1050 max: 1242 4738182549992007691 4739e15 41 gaps >= 1050 max: 1152 4739088673490173777 4740e15 28 gaps >= 1050 max: 1270 4740788890339922941 4741e15 36 gaps >= 1050 max: 1212 4741988049990429661 4742e15 30 gaps >= 1050 max: 1272 4742796531023458891 4743e15 39 gaps >= 1050 max: 1332 4743680514279380087 4744e15 34 gaps >= 1050 max: 1210 4744160187941730229 4745e15 33 gaps >= 1050 max: 1192 4745562502415150257 4746e15 32 gaps >= 1050 max: 1176 4746439531751807987 4747e15 32 gaps >= 1050 max: 1182 4747219668854061041 4748e15 24 gaps >= 1050 max: 1152 4748016212739141077 4748e15 24 gaps >= 1050 max: 1152 4748016212739141077 4749e15 40 gaps >= 1050 max: 1194 4749797846069098363 4750e15 28 gaps >= 1050 max: 1214 4750573912550573879 4751e15 34 gaps >= 1050 max: 1158 4751995353173044993 4752e15 33 gaps >= 1050 max: 1254 4752437104574607803 4753e15 29 gaps >= 1050 max: 1206 4753140625897479713 4754e15 34 gaps >= 1050 max: 1134 4754157611841259859 4755e15 39 gaps >= 1050 max: 1206 4755594880388718671 4756e15 36 gaps >= 1050 max: 1230 4756737919759084013 4757e15 38 gaps >= 1050 max: 1220 4757066620485672821 4758e15 36 gaps >= 1050 max: 1208 4758088214231097443 4759e15 21 gaps >= 1050 max: 1164 4759666659002267483 4760e15 29 gaps >= 1050 max: 1174 4760537828216488267 4761e15 29 gaps >= 1050 max: 1204 4761829804100786107 4762e15 29 gaps >= 1050 max: 1180 4762622400155106577 4763e15 27 gaps >= 1050 max: 1146 4763364313318425203 4764e15 28 gaps >= 1050 max: 1322 4764570331567200599 4765e15 31 gaps >= 1050 max: 1206 4765542879217506143 4766e15 35 gaps >= 1050 max: 1180 4766123312637770173 4767e15 35 gaps >= 1050 max: 1226 4767244580368076567 4768e15 27 gaps >= 1050 max: 1302 4768473734187515609 4769e15 35 gaps >= 1050 max: 1260 4769159331046156019 4770e15 30 gaps >= 1050 max: 1240 4770166487667210277 4771e15 24 gaps >= 1050 max: 1238 4771148412932459231 4772e15 31 gaps >= 1050 max: 1300 4772580061570673881 4773e15 38 gaps >= 1050 max: 1182 4773296920906335439 4774e15 44 gaps >= 1050 max: 1344 4774714979356611059 4775e15 33 gaps >= 1050 max: 1206 4775318348774464331 4776e15 32 gaps >= 1050 max: 1314 4776579613427377039 4777e15 30 gaps >= 1050 max: 1236 4777897030569583897 4778e15 36 gaps >= 1050 max: 1200 4778000899780290911 / 4778020861062335833 4779e15 37 gaps >= 1050 max: 1152 4779104548975804651 4780e15 29 gaps >= 1050 max: 1194 4780226911508534147 4781e15 40 gaps >= 1050 max: 1272 4781371972825746271 4782e15 33 gaps >= 1050 max: 1184 4782972494362478147 4783e15 34 gaps >= 1050 max: 1248 4783766684385485933 4784e15 36 gaps >= 1050 max: 1292 4784725102993160561 4785e15 33 gaps >= 1050 max: 1164 4785918072706394609 4786e15 29 gaps >= 1050 max: 1146 4786642826722336441 4787e15 23 gaps >= 1050 max: 1144 4787536488083837977 4788e15 25 gaps >= 1050 max: 1144 4788317934040957273 4789e15 26 gaps >= 1050 max: 1184 4789120945339231139 4790e15 33 gaps >= 1050 max: 1278 4790725479201911099 4791e15 33 gaps >= 1050 max: 1134 4791199635955610929 4792e15 30 gaps >= 1050 max: 1142 4792895930371503971 4793e15 35 gaps >= 1050 max: 1212 4793236229087327521 4794e15 24 gaps >= 1050 max: 1140 4794941194494579637 4795e15 33 gaps >= 1050 max: 1180 4795295518583258149 4796e15 32 gaps >= 1050 max: 1294 4796064701370467599 4797e15 36 gaps >= 1050 max: 1262 4797041789728897367 4798e15 26 gaps >= 1050 max: 1134 4798175609358994157 4799e15 41 gaps >= 1050 max: 1164 4799363204775485147 [/code] With gap5_f.c on Linux / gcc: [FONT="Courier New"] 19e9 n/s E5-2666v3 2.9GHz 8 thread 28e9 n/s i7-4770k 4.3GHz 8 thread 33e9 n/s i7-6700k 4.2GHz 8 thread 34e9 n/s E5-2666v3 2.9GHz 16 thread 59e9 n/s E5-2686v4 2.7GHz 48 thread[/FONT] gap5_g.c on Windows/Cygwin: [FONT="Courier New"] 6e9 n/s i3-530 2.9GHz 3 thread[/FONT] |
[QUOTE=danaj;461106]4400-4499 will be complete later today. Results at [URL="http://www.mersenneforum.org/showpost.php?p=460275&postcount=163"]post 163[/URL].
[/QUOTE] You meant 4300-4399.... |
[QUOTE=pinhodecarlos;461111]You meant 4300-4399....[/QUOTE]
Doh! Yes I did. |
| All times are UTC. The time now is 22:04. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.