Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #474696 > unrolled thread
| Started by | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| First post | 2017-08-24 22:49 -0400 |
| Last post | 2017-09-02 00:15 +0000 |
| Articles | 20 on this page of 64 — 14 participants |
Back to article view | Back to sci.electronics.design
Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-24 22:49 -0400
Re: Best bang-for-buck uC lonmkusch@gmail.com - 2017-08-25 05:56 -0700
Re: Best bang-for-buck uC Klaus Kragelund <klauskvik@hotmail.com> - 2017-08-25 06:20 -0700
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-25 10:00 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 11:15 -0400
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-25 11:33 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 11:41 -0400
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-25 11:59 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 12:11 -0400
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-08-28 16:44 +0200
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-28 11:12 -0400
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-08-29 13:19 +0200
Re: Best bang-for-buck uC pcdhobbs@gmail.com - 2017-08-29 06:05 -0700
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-09-02 01:16 -0400
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-09-05 10:16 +0200
Re: Best bang-for-buck uC Klaus Kragelund <klauskvik@hotmail.com> - 2017-08-25 15:10 -0700
Re: Best bang-for-buck uC Martin Riddle <martin_rid@verizon.net> - 2017-08-25 11:24 -0400
Re: Best bang-for-buck uC John Larkin <jjlarkin@highlandtechnology.com> - 2017-08-25 08:31 -0700
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-25 11:41 -0400
Re: Best bang-for-buck uC John Larkin <jjlarkin@highlandtechnology.com> - 2017-08-25 15:13 -0700
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-25 09:58 -0400
Re: Best bang-for-buck uC Jasen Betts <jasen@xnet.co.nz> - 2017-08-26 00:47 +0000
Re: Best bang-for-buck uC lonmkusch@gmail.com - 2017-08-25 18:29 -0700
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-08-25 17:03 +0200
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 11:18 -0400
Re: Best bang-for-buck uC Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-08-25 15:06 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 16:20 -0400
Re: Best bang-for-buck uC Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-08-25 20:36 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 20:42 -0400
Re: Best bang-for-buck uC Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-08-25 20:46 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 22:10 -0400
Re: Best bang-for-buck uC Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-08-26 11:31 -0400
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-26 15:30 -0400
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-08-28 16:48 +0200
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-28 11:15 -0400
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-08-29 13:21 +0200
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-25 11:40 -0400
Re: Best bang-for-buck uC Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-08-25 12:38 -0400
Re: Best bang-for-buck uC upsidedown@downunder.com - 2017-08-25 21:16 +0300
Re: Best bang-for-buck uC Piotr Wyderski <peter.pan@neverland.mil> - 2017-08-27 01:43 +0200
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-26 20:48 -0400
Re: Best bang-for-buck uC Piotr Wyderski <peter.pan@neverland.mil> - 2017-08-27 10:53 +0200
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-27 07:35 -0400
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-27 07:28 -0400
Re: Best bang-for-buck uC David Brown <david.brown@hesbynett.no> - 2017-08-28 16:53 +0200
Re: Best bang-for-buck uC Klaus Kragelund <klauskvik@hotmail.com> - 2017-08-25 15:12 -0700
Re: Best bang-for-buck uC "Tim Williams" <tmoranwms@gmail.com> - 2017-08-25 12:37 -0500
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 16:47 -0400
Re: Best bang-for-buck uC "Tim Williams" <tmoranwms@gmail.com> - 2017-08-25 16:33 -0500
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-25 20:39 -0400
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-26 00:04 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-26 02:04 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-26 02:14 -0400
Re: Best bang-for-buck uC "Tim Williams" <tmoranwms@gmail.com> - 2017-08-26 14:28 -0500
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-26 16:52 -0400
Re: Best bang-for-buck uC "Tim Williams" <tmoranwms@gmail.com> - 2017-08-26 14:16 -0500
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-26 15:23 -0400
Re: Best bang-for-buck uC rickman <gnuarm@gmail.com> - 2017-08-26 19:03 -0400
Re: Best bang-for-buck uC "Tim Williams" <tmoranwms@gmail.com> - 2017-08-27 14:40 -0500
Re: Best bang-for-buck uC pcdhobbs@gmail.com - 2017-08-27 14:13 -0700
Re: Best bang-for-buck uC bitrex <bitrex@de.lete.earthlink.net> - 2017-08-27 17:43 -0400
Re: Best bang-for-buck uC Piotr Wyderski <peter.pan@neverland.mil> - 2017-08-27 11:04 +0200
Re: Best bang-for-buck uC John Larkin <jjlarkin@highlandtechnology.com> - 2017-08-25 15:23 -0700
Re: Best bang-for-buck uC antispam@math.uni.wroc.pl - 2017-09-02 00:15 +0000
Page 3 of 4 — ← Prev page 1 2 [3] 4 Next page →
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-26 20:48 -0400 |
| Message-ID | <ont4k1$96h$2@dont-email.me> |
| In reply to | #474903 |
Piotr Wyderski wrote on 8/26/2017 7:43 PM: > bitrex wrote: > >> You gotta buy in quantities of 2000 to get the msp430 at that price. I >> don't have that many bucks to spend on uCs. > > OTOH, your software development would cost much more than the > saving obtained from buying the more demanding, barely fitting, > hence "cheaper" part. So, if you are not interested in high > volume production anyway, why does the cost of the parts matter? > They are peanuts compared to the NRE costs. He's just like that. He will build in qty of 100 or less and sell a total of say 500 units, but is very concerned about unit price. I get it. It's a bit of an emotional thing to want to optimize your unit profit, even if not always logical. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | Piotr Wyderski <peter.pan@neverland.mil> |
|---|---|
| Date | 2017-08-27 10:53 +0200 |
| Message-ID | <onu19h$53d$1@node2.news.atman.pl> |
| In reply to | #474907 |
rickman wrote: > He's just like that. He will build in qty of 100 or less and sell a > total of say 500 units, but is very concerned about unit price. I get > it. It's a bit of an emotional thing to want to optimize your unit > profit, even if not always logical. Playing devil's advocate, this kind of "cost optimization" is pretty hard to unlearn. It is somehow imprinted in the back of the head. Logic does not always come first. I have seen this in at least two other cases where professional electornics designers insisted on using a semi-obsolete, but dirt-cheap parts where a modern, but more expensive IC could handle the issue hands down. The total quantity was 5... Best regards, Piotr
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-27 07:35 -0400 |
| Message-ID | <H7yoB.25331$9F2.4609@fx30.iad> |
| In reply to | #474907 |
On 08/26/2017 08:48 PM, rickman wrote: > Piotr Wyderski wrote on 8/26/2017 7:43 PM: >> bitrex wrote: >> >>> You gotta buy in quantities of 2000 to get the msp430 at that price. I >>> don't have that many bucks to spend on uCs. >> >> OTOH, your software development would cost much more than the >> saving obtained from buying the more demanding, barely fitting, >> hence "cheaper" part. So, if you are not interested in high >> volume production anyway, why does the cost of the parts matter? >> They are peanuts compared to the NRE costs. > > He's just like that. He will build in qty of 100 or less and sell a > total of say 500 units, but is very concerned about unit price. I get > it. It's a bit of an emotional thing to want to optimize your unit > profit, even if not always logical. > Nah, the point I was trying to make (maybe didn't come out right) is that the '85 is a great all-rounder that is a little more expensive than the garbage-tier, but that's OK for many folks who don't make in big quantity as having a nice toolchain and a luxurious amount of program memory for a few pennies more is great. ~95 cents for 8K vs ~60 cents for 1 or 2k is a big jump for pennies that aren't worth worrying about in quantities of hundreds.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-27 07:28 -0400 |
| Message-ID | <A1yoB.51563$OF1.41254@fx35.iad> |
| In reply to | #474903 |
On 08/26/2017 07:43 PM, Piotr Wyderski wrote: > bitrex wrote: > >> You gotta buy in quantities of 2000 to get the msp430 at that price. I >> don't have that many bucks to spend on uCs. > > OTOH, your software development would cost much more than the > saving obtained from buying the more demanding, barely fitting, > hence "cheaper" part. So, if you are not interested in high > volume production anyway, why does the cost of the parts matter? > They are peanuts compared to the NRE costs. > > Best regards, Piotr I guess I thought that was the point I was making? For my own small-volume stuff it doesn't make any sense for me to be trying to squeeze out pennies hunting for a different uC for every project. If I need an 8 pin just keep one variety of 8 pin in stock that's a great all-rounder with a lot of nice features and has a good toolchain, and have some known-good boilerplate code for that device that ideally can be re-used. One project might use 1k of flash and not use most of the peripherals, another 6k and more of them, but there's not much point in trying to save pennies by looking for a cheaper device with less RAM for the former project. IMO the ATTiny85 gives you a lot of re-use flexibility for different projects for not that much extra compared to the more humble uCs, but without having to step up to a device with more pins or a more sophisticated core architecture.
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-08-28 16:53 +0200 |
| Message-ID | <oo1ah2$bha$2@dont-email.me> |
| In reply to | #474903 |
On 27/08/17 01:43, Piotr Wyderski wrote: > bitrex wrote: > >> You gotta buy in quantities of 2000 to get the msp430 at that price. I >> don't have that many bucks to spend on uCs. > > OTOH, your software development would cost much more than the > saving obtained from buying the more demanding, barely fitting, > hence "cheaper" part. So, if you are not interested in high > volume production anyway, why does the cost of the parts matter? > They are peanuts compared to the NRE costs. > The software development tools for the msp430 are free (the good ones are, anyway), and the debuggers are dirt cheap. Of course you are right that unit cost on parts is usually of little relevance unless the volumes are high. Even if the development tools are free, development /time/ is not, nor are things like designing and producing the PCB's.
[toc] | [prev] | [next] | [standalone]
| From | Klaus Kragelund <klauskvik@hotmail.com> |
|---|---|
| Date | 2017-08-25 15:12 -0700 |
| Message-ID | <855de7a0-8e2f-4aff-a9af-051c209acd98@googlegroups.com> |
| In reply to | #474728 |
On Friday, August 25, 2017 at 5:03:50 PM UTC+2, David Brown wrote: > On 25/08/17 04:49, bitrex wrote: > > IMHO the best bang-for-buck uP available right now is the ATTiny85. > > Luxurious 8K of program memory, 512 bytes RAM, 512 bytes flash, 4 ADC > > channels, 2 hardware PWM outputs, 20 MHz clock @ 5 volts. > > > > Under a buck in quantity at Mouser: > > > > <http://www.mouser.com/ProductDetail/Microchip-Technology-Atmel/ATtiny85-20SU/?qs=sGAEpiMZZMtkfMPOFRTOlzm3F7l5sNgt> > > > > "Bang for buck" does not really make sense here. If your needs can be > met with a 16-pin 4 MHz 8-bit device (or whatever), then the cheapest > microcontroller that gives you this is the the "best bang-for-buck." If > it is not enough for the job, then the price doesn't matter. If you > really need 20 MHz performance, you can't just buy 5 of these 4 MHz > devices even if that happens to be lower cost than one faster device. > > Having said that, it is easy to see from Mouser that the ATTiny9 is > $0.275 in quantity. It does less than the ATTiny85, but costs less. Is > that better? It is certainly better bang-for-buck than the Silicon Labs > EFM8B8, since it contains a sensible core and not an 8051 that should > have been obsoleted thirty years ago. > What's wrong with it? The EFM8BB is nice, has comparators, so you can use it for a peak current mode SMPS, no external comps except for the gatedrive and the power components Cheers Klaus
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tmoranwms@gmail.com> |
|---|---|
| Date | 2017-08-25 12:37 -0500 |
| Message-ID | <onpn1k$3ln$1@dont-email.me> |
| In reply to | #474696 |
I'm going to go completely the other way and suggest a GPU, like a Geforce whatever, since you get, what, a thousand CUDA cores for only a few hundred bucks. The GFLOPS/$ put everything else to shame. Slow, 8 bit, scalar, non-pipelined processors? You've got to be kidding! ;-) (Additional quibbles: no one makes microprocessors anymore; ATTiny is a microcontroller, meaning it's not exposed bus, but integrated peripherals. So your example isn't technically correct, by that quibble. :^) Apparently, you can run Linux on GPUs these days, but aside from video output, you don't have any other IO, so I guess a GPU card would be a uP of sorts -- it exposes a bus, so you need to add a few handy devices, and then you've got a full computer -- or, er well, millicontroller if you will, since it's not a single-chip solution after all.) Keeping to a less edgy, more single-chip solution... anything related to cellphones will do the job: peripherals are included, as well as a handful of fast, efficient and cheap ARM cores. Some even have useful RAM included. All that for under $100, depending on where you get them from. Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com "bitrex" <bitrex@de.lete.earthlink.net> wrote in message news:2fMnB.16621$QC2.4627@fx19.iad... > IMHO the best bang-for-buck uP available right now is the ATTiny85. > Luxurious 8K of program memory, 512 bytes RAM, 512 bytes flash, 4 ADC > channels, 2 hardware PWM outputs, 20 MHz clock @ 5 volts. > > Under a buck in quantity at Mouser: > > <http://www.mouser.com/ProductDetail/Microchip-Technology-Atmel/ATtiny85-20SU/?qs=sGAEpiMZZMtkfMPOFRTOlzm3F7l5sNgt>
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-25 16:47 -0400 |
| Message-ID | <onq24e$6q5$1@dont-email.me> |
| In reply to | #474764 |
Tim Williams wrote on 8/25/2017 1:37 PM: > I'm going to go completely the other way and suggest a GPU, like a Geforce > whatever, since you get, what, a thousand CUDA cores for only a few hundred > bucks. The GFLOPS/$ put everything else to shame. > > Slow, 8 bit, scalar, non-pipelined processors? You've got to be kidding! ;-) > > (Additional quibbles: no one makes microprocessors anymore; ATTiny is a > microcontroller, meaning it's not exposed bus, but integrated peripherals. > So your example isn't technically correct, by that quibble. :^) Apparently, > you can run Linux on GPUs these days, but aside from video output, you don't > have any other IO, so I guess a GPU card would be a uP of sorts -- it > exposes a bus, so you need to add a few handy devices, and then you've got a > full computer -- or, er well, millicontroller if you will, since it's not a > single-chip solution after all.) > > Keeping to a less edgy, more single-chip solution... anything related to > cellphones will do the job: peripherals are included, as well as a handful > of fast, efficient and cheap ARM cores. Some even have useful RAM included. > All that for under $100, depending on where you get them from. Guess I was thinking in the MCU rut. The GA144 is a powerful part with 144 CPUs with 700 MIPS each. That's a lot of horsepower. The aggregate horsepower is so large they intend for the user to use an entire CPU for an I/O function like an SPI port. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tmoranwms@gmail.com> |
|---|---|
| Date | 2017-08-25 16:33 -0500 |
| Message-ID | <onq4s5$esv$1@dont-email.me> |
| In reply to | #474781 |
"rickman" <gnuarm@gmail.com> wrote in message news:onq24e$6q5$1@dont-email.me... > Guess I was thinking in the MCU rut. The GA144 is a powerful part with > 144 CPUs with 700 MIPS each. That's a lot of horsepower. The aggregate > horsepower is so large they intend for the user to use an entire CPU for > an I/O function like an SPI port. For embedded, stuff like that is very interesting. But AFAIK, it's still very niche, and therefore loses on the MIPS/$ front. (Well, maybe. ~100GIPS sure is a lot. What's price and availability like?) And it comes with all the troubles of multithreading: resource allocation and management (buses, pins, memory, cache), Amdahl's law (if you need to parallelize some algorithms to try and make better use of all the cores you aren't needing for IO), atomic operations / mutexes / locking, and impossible-to-track bugs. One of those things that, done right, can offer amazing redundancy, reliability and scalability; but which is so painfully easy to do just a little bit wrong. Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-25 20:39 -0400 |
| Message-ID | <onqfno$b16$2@dont-email.me> |
| In reply to | #474785 |
Tim Williams wrote on 8/25/2017 5:33 PM: > "rickman" <gnuarm@gmail.com> wrote in message > news:onq24e$6q5$1@dont-email.me... >> Guess I was thinking in the MCU rut. The GA144 is a powerful part with >> 144 CPUs with 700 MIPS each. That's a lot of horsepower. The aggregate >> horsepower is so large they intend for the user to use an entire CPU for >> an I/O function like an SPI port. > > For embedded, stuff like that is very interesting. But AFAIK, it's still > very niche, and therefore loses on the MIPS/$ front. (Well, maybe. ~100GIPS > sure is a lot. What's price and availability like?) I seem to recall $10 in qty. They are stock for a few thousand. But longevity is the question. This is a one product company running on a shoestring. I have no idea how many of these they sell or how long the company will be around. > And it comes with all the troubles of multithreading: resource allocation > and management (buses, pins, memory, cache), Amdahl's law (if you need to > parallelize some algorithms to try and make better use of all the cores you > aren't needing for IO), atomic operations / mutexes / locking, and > impossible-to-track bugs. You have already blown the concept. You will not program 144 processors *anything* like you will program a single fast processor. Think of this as 144 logic elements that can compute very fast. If you try to program it the same way you program a PC you will lose all the capability which you appear to understand. > One of those things that, done right, can offer amazing redundancy, > reliability and scalability; but which is so painfully easy to do just a > little bit wrong. Ok. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-26 00:04 -0400 |
| Message-ID | <0r6oB.20620$bI2.6962@fx04.iad> |
| In reply to | #474806 |
On 08/25/2017 08:39 PM, rickman wrote: >> And it comes with all the troubles of multithreading: resource allocation >> and management (buses, pins, memory, cache), Amdahl's law (if you need to >> parallelize some algorithms to try and make better use of all the >> cores you >> aren't needing for IO), atomic operations / mutexes / locking, and >> impossible-to-track bugs. > > You have already blown the concept. You will not program 144 processors > *anything* like you will program a single fast processor. Think of this > as 144 logic elements that can compute very fast. If you try to program > it the same way you program a PC you will lose all the capability which > you appear to understand. GPU cores are designed to usually be programmed in a high level language like HLSL or GLSL. They're very restrictive subsets of C with some additional types and functions for vectors and matrices, and extremely fast hardware accelerated floating point math functions. "Vertex shaders" and "pixel shaders" operate in parallel on each vertex and pixel of a video frame. There's no inter-core communication as far as I'm aware so there's no way for the code operating on one pixel to "know" what the code operating on some other pixel is doing, at least not without communicating with the CPU or main memory which is slow and sort of defeats the purpose. It's more like writing VHDL than C, but you can make some lovely effects like this one (if you can view it it's being generated in real time by your computer's GPU by the code on the right): <https://www.shadertoy.com/view/Ms2SD1>
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-26 02:04 -0400 |
| Message-ID | <onr2ps$h38$1@dont-email.me> |
| In reply to | #474822 |
bitrex wrote on 8/26/2017 12:04 AM: > On 08/25/2017 08:39 PM, rickman wrote: > >>> And it comes with all the troubles of multithreading: resource allocation >>> and management (buses, pins, memory, cache), Amdahl's law (if you need to >>> parallelize some algorithms to try and make better use of all the cores you >>> aren't needing for IO), atomic operations / mutexes / locking, and >>> impossible-to-track bugs. >> >> You have already blown the concept. You will not program 144 processors >> *anything* like you will program a single fast processor. Think of this >> as 144 logic elements that can compute very fast. If you try to program >> it the same way you program a PC you will lose all the capability which >> you appear to understand. > > GPU cores are designed to usually be programmed in a high level language > like HLSL or GLSL. They're very restrictive subsets of C with some > additional types and functions for vectors and matrices, and extremely fast > hardware accelerated floating point math functions. > > "Vertex shaders" and "pixel shaders" operate in parallel on each vertex and > pixel of a video frame. There's no inter-core communication as far as I'm > aware so there's no way for the code operating on one pixel to "know" what > the code operating on some other pixel is doing, at least not without > communicating with the CPU or main memory which is slow and sort of defeats > the purpose. > > It's more like writing VHDL than C, but you can make some lovely effects > like this one (if you can view it it's being generated in real time by your > computer's GPU by the code on the right): > > <https://www.shadertoy.com/view/Ms2SD1> You snipped the part that told you what I was talking about. The GA144 is not a GPU. It's an embedded CPU array, power consumption max is about a watt but each processor uses no power when it has nothing to do so the actual power is typically much less. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-26 02:14 -0400 |
| Message-ID | <onr3bq$i9m$1@dont-email.me> |
| In reply to | #474822 |
bitrex wrote on 8/26/2017 12:04 AM: > > It's more like writing VHDL than C, but you can make some lovely effects > like this one (if you can view it it's being generated in real time by your > computer's GPU by the code on the right): > > <https://www.shadertoy.com/view/Ms2SD1> Pretty cool video. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tmoranwms@gmail.com> |
|---|---|
| Date | 2017-08-26 14:28 -0500 |
| Message-ID | <onshsj$kq9$1@dont-email.me> |
| In reply to | #474822 |
"bitrex" <bitrex@de.lete.earthlink.net> wrote in message news:0r6oB.20620$bI2.6962@fx04.iad... > GPU cores are designed to usually be programmed in a high level language > like HLSL or GLSL. They're very restrictive subsets of C with some > additional types and functions for vectors and matrices, and extremely > fast hardware accelerated floating point math functions. AFAIK, GPU cores are vector units: an instruction decoder unit follows the program, directing N register files and ALUs and memory buses to do the operations en masse. And so there are two kinds of cores: the ALU parts, and the instruction parts that control them. I forget which kind is which, when you're shopping for GPUs -- I thought it's that, CUDA cores (to use NVidia for example) are the ALU parts, and there's another term for the top level sets-of-cores parts. So there are some problems that can be computed very easily with these: anything where the same operation is performed upon huge swaths of data, of course, are fine (linear algebra). Less so if you have, say, loops per pixel, like ray tracing, or, rendering a fractal. There are some tricks you can do, like using arithmetic as conditionals (instead of "(condition) ? (expr1) : (expr2)", you use "(condition == 0) * (expr1) + (condition != 0) * (expr2)"). But anything that requires branching/looping, per element, that can't be optimized this way, is right out. In contrast, a pile of general purpose compute cores, that do allow branching per element, could solve that kind of problem quickly. Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-26 16:52 -0400 |
| Message-ID | <FcloB.38381$EZ2.28484@fx22.iad> |
| In reply to | #474863 |
On 08/26/2017 03:28 PM, Tim Williams wrote: > So there are some problems that can be computed very easily with these: > anything where the same operation is performed upon huge swaths of data, > of course, are fine (linear algebra). Less so if you have, say, loops > per pixel, like ray tracing, or, rendering a fractal. There are some > tricks you can do, like using arithmetic as conditionals (instead of > "(condition) ? (expr1) : (expr2)", you use "(condition == 0) * (expr1) + > (condition != 0) * (expr2)"). But anything that requires > branching/looping, per element, that can't be optimized this way, is > right out. > > In contrast, a pile of general purpose compute cores, that do allow > branching per element, could solve that kind of problem quickly. > > Tim > "Raymarching" is the trivially-parallelize-able version of raycasting: <https://en.wikipedia.org/wiki/Volume_ray_casting> <https://www.shadertoy.com/view/4syXRV> Can't easily do multiple reflections, though, as that would require the aforementioned loops-per-pixel.
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tmoranwms@gmail.com> |
|---|---|
| Date | 2017-08-26 14:16 -0500 |
| Message-ID | <onsh5l$iig$1@dont-email.me> |
| In reply to | #474806 |
"rickman" <gnuarm@gmail.com> wrote in message news:onqfno$b16$2@dont-email.me... > I seem to recall $10 in qty. They are stock for a few thousand. But > longevity is the question. This is a one product company running on a > shoestring. I have no idea how many of these they sell or how long the > company will be around. Awfully good price. Well, hope they pick up and become a thing -- it's clear that multicore approaches are the future, we just need the tools to automate them, compiling around the traditional issues where possible. > You have already blown the concept. You will not program 144 processors > *anything* like you will program a single fast processor. Think of this > as 144 logic elements that can compute very fast. If you try to program > it the same way you program a PC you will lose all the capability which > you appear to understand. Well, the broad bullet points that I hit are intrinsic to any real time, resource sharing system, whether it's PC multithreading, or traffic in the street. I would find it quite surprising that they've solved that. By "logic elements", do you mean to imply that each core is self-contained, with a limited number of inputs and outputs, and some sort of programmable (not necessarily at run time) crossbar or interconnect bus between them? In other words: a CPLD, but instead of logic blocks, compute cores. That would seem altogether far more difficult to organize and program than a shared bus system, though. But that's an interesting insight, come to think of it: FPGA routing being analogous to resource management in multithreaded systems. Downside: the data inputs and outputs of a thread have to be known at compile time, which means the compiler needs to know a hell of a lot more about the function of that thread. Whereas a logic circuit is static, simply a set of inputs and outputs, very easily solved (relatively speaking..). It is perhaps a solvable problem, to be able to determine, algorithmically, the optimal scheduling of threads, at compile time. But it'd most likely be either O(N!), or Omega(BusyBeaver(N))... But, somewhere between those extremes, and compromising for heuristics rather than algorithms, there may be a suitably limited, simplified subset of threaded computation, that is easily analyzed yet still powerful enough to be useful (and not so arcane that no one wants to program in it). Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-26 15:23 -0400 |
| Message-ID | <WUjoB.8665$i03.7886@fx24.iad> |
| In reply to | #474861 |
On 08/26/2017 03:16 PM, Tim Williams wrote: > By "logic elements", do you mean to imply that each core is > self-contained, with a limited number of inputs and outputs, and some > sort of programmable (not necessarily at run time) crossbar or > interconnect bus between them? In other words: a CPLD, but instead of > logic blocks, compute cores. > > That would seem altogether far more difficult to organize and program > than a shared bus system, though. Tilera made processors with a concept like that: <https://en.wikipedia.org/wiki/TILE64> They were bought out by EZChip, which was recently themselves bought out by the Israel networking hardware group Mellanox: <https://en.wikipedia.org/wiki/TILE64> Anat Agarwal taught MIT's online MITx program's "EE 101"-type courses.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-26 19:03 -0400 |
| Message-ID | <onsuf9$raj$1@dont-email.me> |
| In reply to | #474861 |
Tim Williams wrote on 8/26/2017 3:16 PM: > "rickman" <gnuarm@gmail.com> wrote in message > news:onqfno$b16$2@dont-email.me... >> I seem to recall $10 in qty. They are stock for a few thousand. But >> longevity is the question. This is a one product company running on a >> shoestring. I have no idea how many of these they sell or how long the >> company will be around. > > Awfully good price. Well, hope they pick up and become a thing -- it's > clear that multicore approaches are the future, we just need the tools to > automate them, compiling around the traditional issues where possible. This particular chip has some serious limitations like memory size. It is a challenge to use for any complex task. $/MIPS is not a particularly useful metric. >> You have already blown the concept. You will not program 144 processors >> *anything* like you will program a single fast processor. Think of this >> as 144 logic elements that can compute very fast. If you try to program >> it the same way you program a PC you will lose all the capability which >> you appear to understand. > > Well, the broad bullet points that I hit are intrinsic to any real time, > resource sharing system, whether it's PC multithreading, or traffic in the > street. I would find it quite surprising that they've solved that. None of those things seem to apply to the GA144, so not so general, at least not the way you stated it. > By "logic elements", do you mean to imply that each core is self-contained, > with a limited number of inputs and outputs, and some sort of programmable > (not necessarily at run time) crossbar or interconnect bus between them? In > other words: a CPLD, but instead of logic blocks, compute cores. Yes, that is how I view these things, as a FPPA (Field Programmable Processor Array) rather than an FPGA. > That would seem altogether far more difficult to organize and program than a > shared bus system, though. Yup! > But that's an interesting insight, come to think of it: FPGA routing being > analogous to resource management in multithreaded systems. Downside: the > data inputs and outputs of a thread have to be known at compile time, which > means the compiler needs to know a hell of a lot more about the function of > that thread. Whereas a logic circuit is static, simply a set of inputs and > outputs, very easily solved (relatively speaking..). The GA144 only connects in a square grid to the local cores. So only the outer CPUs have access to any IO pins and any other core has to talk through those. People get their knickers in a twist focusing on the "loss" of MIPS from handling message traffic, but rather than focus on the one resource which is *not* in short supply, the focus should be on making it work to solve a given problem. > It is perhaps a solvable problem, to be able to determine, algorithmically, > the optimal scheduling of threads, at compile time. This may have some utility, but I think it is a bit off the mark for the GA144, too high level. > But it'd most likely be > either O(N!), or Omega(BusyBeaver(N))... But, somewhere between those > extremes, and compromising for heuristics rather than algorithms, there may > be a suitably limited, simplified subset of threaded computation, that is > easily analyzed yet still powerful enough to be useful (and not so arcane > that no one wants to program in it). Yes, definitely too high level without there being someway to apply this to the GA144. -- Rick C Viewed the eclipse at Wintercrest Farms, on the centerline of totality since 1998
[toc] | [prev] | [next] | [standalone]
| From | "Tim Williams" <tmoranwms@gmail.com> |
|---|---|
| Date | 2017-08-27 14:40 -0500 |
| Message-ID | <onv701$mgo$1@dont-email.me> |
| In reply to | #474897 |
"rickman" <gnuarm@gmail.com> wrote in message news:onsuf9$raj$1@dont-email.me... > This particular chip has some serious limitations like memory size. It is > a challenge to use for any complex task. $/MIPS is not a particularly > useful metric. ... > None of those things seem to apply to the GA144, so not so general, at > least not the way you stated it. Oh, well, getting rid of memory entirely* would obviate that. *So to speak. Nearly. I guess. > The GA144 only connects in a square grid to the local cores. So only the > outer CPUs have access to any IO pins and any other core has to talk > through those. Oh, a mesh computer, why didn't you say so! > People get their knickers in a twist focusing on the "loss" of MIPS from > handling message traffic, but rather than focus on the one resource > which is *not* in short supply, the focus should be on making it work to > solve a given problem. Not so bad when you've got so many to spare: example, dedicate a few rows of cores as data routing (which can be any combination you like: duplexed, synchronous, packetized, variable length, addressed...), and use the remaining perimeter as your parallel processor. You might still get dozens of cores in parallel that way, even if the utilization is effectively maybe 20%. But that wouldn't be very useful without a compiler to handle it for you. Maybe not down to creating the messaging structure automatically, but there could be a library of options at least, and perhaps within a suitable framework, it could be able to choose, or recommend, the most suitable methods. > This may have some utility, but I think it is a bit off the mark for the > GA144, too high level. Yeah, the problem is the thing getting popular enough (or into a research project), where enough smart people have the time to study the system, and create those frameworks. It would also be nice if the frameworks are flexible, and if they're based on the broader range of parallel processor architectures out there, which would require studying the literature as well as the marketplace. Millions of dollars of research, easily... Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Contract Design Website: http://seventransistorlabs.com
[toc] | [prev] | [next] | [standalone]
| From | pcdhobbs@gmail.com |
|---|---|
| Date | 2017-08-27 14:13 -0700 |
| Message-ID | <14e81936-5241-493a-b8e8-868ad95f6b98@googlegroups.com> |
| In reply to | #475002 |
>> The GA144 only connects in a square grid to the local cores. So only the >> outer CPUs have access to any IO pins and any other core has to talk >> through those. >Oh, a mesh computer, why didn't you say so! Shades of the Transputer. Does it have an Occam compiler? Cheers Phil Hobbs
[toc] | [prev] | [next] | [standalone]
Page 3 of 4 — ← Prev page 1 2 [3] 4 Next page →
Back to top | Article view | sci.electronics.design
csiph-web