Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1046)

Issue 5986054: code review 5986054: runtime: add parallel for algorithm (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by dvyukov
Modified:
11 years, 11 months ago
Reviewers:
CC:
bsiegert, mpimenov, rsc, minux1, r, golang-dev
Visibility:
Public.

Description

runtime: add parallel for algorithm This is factored out part of: http://codereview.appspot.com/5279048/ (parallel GC)

Patch Set 1 #

Patch Set 2 : diff -r d685ccae1668 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r d685ccae1668 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r d685ccae1668 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 512073e3b7f2 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 512073e3b7f2 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 512073e3b7f2 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 512073e3b7f2 https://go.googlecode.com/hg/ #

Total comments: 16

Patch Set 9 : diff -r 0051c7442fed https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 10 : diff -r 0051c7442fed https://go.googlecode.com/hg/ #

Total comments: 30

Patch Set 11 : diff -r 14c38c23c819 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 14c38c23c819 https://go.googlecode.com/hg/ #

Total comments: 12

Patch Set 13 : diff -r 4a18b0e071b1 https://go.googlecode.com/hg/ #

Patch Set 14 : diff -r 4a18b0e071b1 https://go.googlecode.com/hg/ #

Patch Set 15 : diff -r 26086374b931 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 16 : diff -r c93b5846e97b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -0 lines) Patch
M src/cmd/dist/buildruntime.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/export_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +25 lines, -0 lines 0 comments Download
A src/pkg/runtime/parfor.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +210 lines, -0 lines 0 comments Download
A src/pkg/runtime/parfor_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +117 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 25
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years ago (2012-04-09 12:14:13 UTC) #1
bsiegert
Just two comments on the comments (heh). http://codereview.appspot.com/5986054/diff/1010/src/pkg/runtime/parfor.c File src/pkg/runtime/parfor.c (right): http://codereview.appspot.com/5986054/diff/1010/src/pkg/runtime/parfor.c#newcode96 src/pkg/runtime/parfor.c:96: // obtain ...
12 years ago (2012-04-09 14:12:26 UTC) #2
mpimenov
http://codereview.appspot.com/5986054/diff/1010/src/pkg/runtime/parfor.c File src/pkg/runtime/parfor.c (right): http://codereview.appspot.com/5986054/diff/1010/src/pkg/runtime/parfor.c#newcode66 src/pkg/runtime/parfor.c:66: d = n % nthr; move out of the ...
12 years ago (2012-04-09 14:47:33 UTC) #3
dvyukov
http://codereview.appspot.com/5986054/diff/1010/src/pkg/runtime/parfor.c File src/pkg/runtime/parfor.c (right): http://codereview.appspot.com/5986054/diff/1010/src/pkg/runtime/parfor.c#newcode66 src/pkg/runtime/parfor.c:66: d = n % nthr; On 2012/04/09 14:47:34, mpimenov ...
12 years ago (2012-04-10 06:48:29 UTC) #4
dvyukov
Hello golang-dev@googlegroups.com, bsiegert@gmail.com, mpimenov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2012-04-10 06:48:29 UTC) #5
bsiegert
LGTM after this. http://codereview.appspot.com/5986054/diff/6010/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): http://codereview.appspot.com/5986054/diff/6010/src/pkg/runtime/runtime.h#newcode360 src/pkg/runtime/runtime.h:360: // executed for each element One ...
12 years ago (2012-04-10 07:05:50 UTC) #6
dvyukov
Hello golang-dev@googlegroups.com, bsiegert@gmail.com, mpimenov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2012-04-10 07:09:07 UTC) #7
dvyukov
http://codereview.appspot.com/5986054/diff/6010/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): http://codereview.appspot.com/5986054/diff/6010/src/pkg/runtime/runtime.h#newcode360 src/pkg/runtime/runtime.h:360: // executed for each element On 2012/04/10 07:05:50, bsiegert ...
12 years ago (2012-04-10 07:09:29 UTC) #8
mpimenov
http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/parfor_test.go File src/pkg/runtime/parfor_test.go (right): http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/parfor_test.go#newcode44 src/pkg/runtime/parfor_test.go:44: (*d)[i] = (*d)[i]*(*d)[i] + 1 Will x := (*d)[i] ...
12 years ago (2012-04-10 16:12:17 UTC) #9
rsc
looks pretty good; lots of tiny stuff http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/export_test.go File src/pkg/runtime/export_test.go (right): http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/export_test.go#newcode41 src/pkg/runtime/export_test.go:41: func parforsetup2(desc ...
12 years ago (2012-04-10 20:37:53 UTC) #10
dvyukov
http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/export_test.go File src/pkg/runtime/export_test.go (right): http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/export_test.go#newcode41 src/pkg/runtime/export_test.go:41: func parforsetup2(desc *Parfor, nthr, n uint32, ctx *byte, wait ...
12 years ago (2012-04-12 09:54:22 UTC) #11
dvyukov
http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/runtime.h#newcode369 src/pkg/runtime/runtime.h:369: }; On 2012/04/10 20:37:53, rsc wrote: > ParforThread *thr; ...
12 years ago (2012-04-12 09:59:07 UTC) #12
dvyukov
http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/parfor.c File src/pkg/runtime/parfor.c (right): http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/parfor.c#newcode172 src/pkg/runtime/parfor.c:172: m->gcstats.nsteal++; On 2012/04/10 20:37:53, rsc wrote: > This isn't ...
12 years ago (2012-04-12 10:08:11 UTC) #13
minux1
On Thu, Apr 12, 2012 at 5:59 PM, <dvyukov@google.com> wrote: > > http://codereview.appspot.com/**5986054/diff/2018/src/pkg/** > runtime/runtime.h<http://codereview.appspot.com/5986054/diff/2018/src/pkg/runtime/runtime.h> ...
12 years ago (2012-04-12 10:51:51 UTC) #14
dvyukov
Hello bsiegert@gmail.com, mpimenov@google.com, rsc@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2012-04-12 11:28:37 UTC) #15
dvyukov
On 2012/04/12 10:51:51, minux wrote: > add parfor.c to runtimedefs table in cmd/dist/buildruntime.c. Works for ...
12 years ago (2012-04-12 12:06:07 UTC) #16
dvyukov
ping
12 years ago (2012-04-23 07:46:47 UTC) #17
rsc
Looks very close. http://codereview.appspot.com/5986054/diff/15009/src/pkg/runtime/export_test.go File src/pkg/runtime/export_test.go (right): http://codereview.appspot.com/5986054/diff/15009/src/pkg/runtime/export_test.go#newcode59 src/pkg/runtime/export_test.go:59: var ParforGetIters = func(desc *Parfor, tid ...
12 years ago (2012-04-25 02:34:00 UTC) #18
dvyukov
All done. PTAL. http://codereview.appspot.com/5986054/diff/15009/src/pkg/runtime/export_test.go File src/pkg/runtime/export_test.go (right): http://codereview.appspot.com/5986054/diff/15009/src/pkg/runtime/export_test.go#newcode59 src/pkg/runtime/export_test.go:59: var ParforGetIters = func(desc *Parfor, tid ...
12 years ago (2012-04-26 13:43:59 UTC) #19
r
dumb dumb question: shouldn't this be ParFor?
12 years ago (2012-04-26 21:07:28 UTC) #20
dvyukov
On 2012/04/26 21:07:28, r wrote: > dumb dumb question: shouldn't this be ParFor? Done. PTAL.
12 years ago (2012-04-27 18:39:11 UTC) #21
dvyukov
On 2012/04/27 18:39:11, dvyukov wrote: > On 2012/04/26 21:07:28, r wrote: > > dumb dumb ...
11 years, 11 months ago (2012-05-08 08:02:19 UTC) #22
rsc
LGTM http://codereview.appspot.com/5986054/diff/35001/src/pkg/runtime/parfor.c File src/pkg/runtime/parfor.c (right): http://codereview.appspot.com/5986054/diff/35001/src/pkg/runtime/parfor.c#newcode26 src/pkg/runtime/parfor.c:26: byte pad[CacheLineSize-sizeof(ParForThreadUnpadded)]; Don't you still want byte pad[CacheLineSize] ...
11 years, 11 months ago (2012-05-08 19:19:58 UTC) #23
dvyukov
On 2012/05/08 19:19:58, rsc wrote: > LGTM > > http://codereview.appspot.com/5986054/diff/35001/src/pkg/runtime/parfor.c > File src/pkg/runtime/parfor.c (right): > ...
11 years, 11 months ago (2012-05-11 06:49:15 UTC) #24
dvyukov
11 years, 11 months ago (2012-05-11 06:50:38 UTC) #25
*** Submitted as http://code.google.com/p/go/source/detail?r=345cbca96c55 ***

runtime: add parallel for algorithm
This is factored out part of:
http://codereview.appspot.com/5279048/
(parallel GC)

R=bsiegert, mpimenov, rsc, minux.ma, r
CC=golang-dev
http://codereview.appspot.com/5986054
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b