|
Re: run flags vs active intervals
Fair enough. Vectorization does imply unrolling the loop (by a factor of
4 for SSE), though loop unrolling can sometimes be a useful optimization
without hardware vectorization.
The active index
Fair enough. Vectorization does imply unrolling the loop (by a factor of
4 for SSE), though loop unrolling can sometimes be a useful optimization
without hardware vectorization.
The active index
|
By
Chris Foster <chri...@...>
·
#145
·
|
|
Re: run flags vs active intervals
I guess i was thinking of the vectorization being a type of unrolling, not really in the correct sense i guess.
Where it was expanding it by say by 4 or how ever wide the vector operator is, reducing
I guess i was thinking of the vectorization being a type of unrolling, not really in the correct sense i guess.
Where it was expanding it by say by 4 or how ever wide the vector operator is, reducing
|
By
Wormszer <worm...@...>
·
#140
·
|
|
Re: run flags vs active intervals
No, the active index case isn't vectorized by the compiler anyway.
No. In a SIMD shader machine I generally expect that creating the runstate
representation (whatever it may be) from the results of
No, the active index case isn't vectorized by the compiler anyway.
No. In a SIMD shader machine I generally expect that creating the runstate
representation (whatever it may be) from the results of
|
By
Chris Foster <chri...@...>
·
#144
·
|
|
Error for bad connection type rather than assertion. (issue193063)
LGTM
Having dev-osl@imagework usually works for me, but I don't see this
mail.
http://codereview.appspot.com/193063/show
LGTM
Having dev-osl@imagework usually works for me, but I don't see this
mail.
http://codereview.appspot.com/193063/show
|
By
cku...@...
·
#143
·
|
|
Re: Compiling OpenShadingLanguage under Windows
I have been trying to get the shaders test to build but I have run into lots of issues with linking dependencies, exports imports etc.
The projects cmake generates for example oslquery uses source
I have been trying to get the shaders test to build but I have run into lots of issues with linking dependencies, exports imports etc.
The projects cmake generates for example oslquery uses source
|
By
Wormszer <worm...@...>
·
#138
·
|
|
Re: run flags vs active intervals
That's interesting, it kind of relates to my original question if the compiler was able to apply SIMD operations to the loop.
When you disabled vectorization did it effect the active index case?
Are
That's interesting, it kind of relates to my original question if the compiler was able to apply SIMD operations to the loop.
When you disabled vectorization did it effect the active index case?
Are
|
By
Wormszer <worm...@...>
·
#135
·
|
|
Re: run flags vs active intervals
Right, here's the initialization code for some sparse on-states:
// Four isolated flags turned on.
std::fill((Runflag*)r, r+len, (Runflag)Runflag_Off);
r[0] = r[50] = r[100] = r[150] =
Right, here's the initialization code for some sparse on-states:
// Four isolated flags turned on.
std::fill((Runflag*)r, r+len, (Runflag)Runflag_Off);
r[0] = r[50] = r[100] = r[150] =
|
By
Chris Foster <chri...@...>
·
#137
·
|
|
Re: Add derivatives to I in shader globals (issue186262)
LGTM
http://codereview.appspot.com/186262/show
LGTM
http://codereview.appspot.com/186262/show
|
By
cku...@...
·
#133
·
|
|
Add derivatives to I in shader globals (issue186262)
Reviewers: osl-dev_googlegroups.com,
Description:
We were missing the derivatives in the I field which is important for
background shader. This little patch fixes the problem.
Please review this at
Reviewers: osl-dev_googlegroups.com,
Description:
We were missing the derivatives in the I field which is important for
background shader. This little patch fixes the problem.
Please review this at
|
By
aco...@...
·
#132
·
|
|
Re: run flags vs active intervals
I want to point out that Chris F tested out the "all on", "random on", and "alternating on/off" cases. There's one more case that may be important, which is a few isolated "on" points with big "off"
I want to point out that Chris F tested out the "all on", "random on", and "alternating on/off" cases. There's one more case that may be important, which is a few isolated "on" points with big "off"
|
By
Larry Gritz <l...@...>
·
#128
·
|
|
Re: run flags vs active intervals
I like this idea too. What we were discussing yesterday was something
like:
index: [ 0 1 2 3 4 5 6 7 8 9 ]
flags: [ 0 0 1 1 1 1 0 0 1 0 ]
active_points: [ 2 3 4 5 8 ]
for (int i =
I like this idea too. What we were discussing yesterday was something
like:
index: [ 0 1 2 3 4 5 6 7 8 9 ]
flags: [ 0 0 1 1 1 1 0 0 1 0 ]
active_points: [ 2 3 4 5 8 ]
for (int i =
|
By
Christopher <cku...@...>
·
#127
·
|
|
Re: run flags vs active intervals
As a uni student who is keen on the OSL open source release, I'm glad to be reading these discussions - particularly questions and answers. They're the source of knowledge, freely shared insights. It
As a uni student who is keen on the OSL open source release, I'm glad to be reading these discussions - particularly questions and answers. They're the source of knowledge, freely shared insights. It
|
By
Xavier Ho <con...@...>
·
#136
·
|
|
Re: run flags vs active intervals
Thanks, that makes sense. I know compilers are getting smarter all the time but wasn't sure if they were there yet. The cache and memory coherence makes sense, and then sorting things like that would
Thanks, that makes sense. I know compilers are getting smarter all the time but wasn't sure if they were there yet. The cache and memory coherence makes sense, and then sorting things like that would
|
By
Wormszer <worm...@...>
·
#131
·
|
|
Re: run flags vs active intervals
It's not really referring to hardware SIMD, but just that we are shading many points at once, "in lock-step." In other words, if you had many points to shade, you could do it in this order:
point
It's not really referring to hardware SIMD, but just that we are shading many points at once, "in lock-step." In other words, if you had many points to shade, you could do it in this order:
point
|
By
Larry Gritz <l...@...>
·
#126
·
|
|
Re: run flags vs active intervals
Is there a good resource on this topic? I did some googling and didn't see what i was looking for.
Where is the actual SIMD taking place?
Is the compiler figuring it out from the loop and setting up
Is there a good resource on this topic? I did some googling and didn't see what i was looking for.
Where is the actual SIMD taking place?
Is the compiler figuring it out from the loop and setting up
|
By
Wormszer <worm...@...>
·
#130
·
|
|
Re: run flags vs active intervals
Awesome, Chris. Would you believe we were just talking internally about this topic yesterday? We were considering the amount of waste if there were big gaps of "off" points in the middle. But I
Awesome, Chris. Would you believe we were just talking internally about this topic yesterday? We were considering the amount of waste if there were big gaps of "off" points in the middle. But I
|
By
Larry Gritz <l...@...>
·
#125
·
|
|
run flags vs active intervals
Hi all,
I've been looking through the OSL source a little, and I'm interested to see
that you're using runflags for the SIMD state. I know that's a really
conventional solution, but there's an
Hi all,
I've been looking through the OSL source a little, and I'm interested to see
that you're using runflags for the SIMD state. I know that's a really
conventional solution, but there's an
|
By
Chris Foster <chri...@...>
·
#134
·
|
|
Re: Volume Shaders
Thanks so far for the answers, I'm looking forward to seeing OSL
progress. Good stuff!
Regards,
Daniel
Thanks so far for the answers, I'm looking forward to seeing OSL
progress. Good stuff!
Regards,
Daniel
|
By
Daniel <night-...@...>
·
#123
·
|
|
Re: Volume Shaders
Er, I'm not sure. I think this is exactly the kind of thing we will be working out over the next few weeks. When we actually implemented surface integrators, we discovered all sorts of issues we
Er, I'm not sure. I think this is exactly the kind of thing we will be working out over the next few weeks. When we actually implemented surface integrators, we discovered all sorts of issues we
|
By
Larry Gritz <l...@...>
·
#122
·
|
|
Re: Volume Shaders
Meh, I just realized my ambiguous use of "integrator". In this case I
meant "party integrating OSL into their system"...
Regards,
Daniel
Meh, I just realized my ambiguous use of "integrator". In this case I
meant "party integrating OSL into their system"...
Regards,
Daniel
|
By
Daniel <night-...@...>
·
#121
·
|