search for: ballot

Displaying 20 results from an estimated 212 matches for "ballot".

Did you mean: ballon
2011 Jul 11
2
Pre-populating association
Hello, I think this is an easy one for the average Rails developer but I''m a bit stuck. I''m creating a simple voting app: any user can create a survey, with any number of questions, and other users can then vote by creating a ballot for that survey. Here''s the modeling: class Survey < ActiveRecord::Base has_many :questions has_many :eligibilities has_many :ballots accepts_nested_attributes_for :questions, :allow_destroy => true attr_accessible :title, :description, :status, :deadline, :questions_...
2019 Jan 28
2
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
On Fri, Jan 25, 2019 at 3:05 AM Jan Sjodin <jan_sjodin at yahoo.com> wrote: > > > for (...) { > > ballot(); > > if (... /* non-uniform */) continue; > > } > > > > into > > > > for (...) { > > do { > > ballot(); > > } while (... /* non-uniform */); > > } > > I'm not sure if I follow this example, could you and exp...
2019 Jan 30
3
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
On Mon, Jan 28, 2019 at 9:09 PM Jan Sjodin <jan_sjodin at yahoo.com> wrote: > > > for (int i = 0; i < 2; i++) { > > foo = ballot(true); // ballot 1 > > > > if (threadID /* ID of the thread within a wavefront/warp */ % 2 == 0) continue; > > > > bar = ballot(true); // ballot 2 > > } > > > > versus: > > > > int i = 0; > > while (true) { > > do { > &g...
2019 Jan 31
2
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
On Wed, Jan 30, 2019 at 7:20 AM Jan Sjodin via llvm-dev < llvm-dev at lists.llvm.org> wrote: > > > > > > > for (int i = 0; i < 2; i++) { > > > > foo = ballot(true); // ballot 1 > > > > > > > > if (threadID /* ID of the thread within a wavefront/warp */ % 2 > == 0) continue; > > > > > > > > bar = ballot(true); // ballot 2 > > > > } > > > > > > > > versus: > &g...
2019 Jan 30
2
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
On Wed, Jan 30, 2019 at 4:20 PM Jan Sjodin <jan_sjodin at yahoo.com> wrote: > > > > > > > for (int i = 0; i < 2; i++) { > > > > foo = ballot(true); // ballot 1 > > > > > > > > if (threadID /* ID of the thread within a wavefront/warp */ % 2 > == 0) continue; > > > > > > > > bar = ballot(true); // ballot 2 > > > > } > > > > > > > > versus: > &g...
2019 Jan 31
3
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
...:01:51 AM EST, Mehdi AMINI < > joker.eph at gmail.com> wrote: > > > > > On Wed, Jan 30, 2019 at 7:20 AM Jan Sjodin via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > > > > > for (int i = 0; i < 2; i++) { > > > > foo = ballot(true); // ballot 1 > > > > > > > > if (threadID /* ID of the thread within a wavefront/warp */ % 2 > == 0) continue; > > > > > > > > bar = ballot(true); // ballot 2 > > > > } > > > > > > > > versus: > &g...
2019 Feb 01
2
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
On 31.01.19 15:59, Jan Sjodin wrote: >> >  Any transform that re-arranges control flow would potentially have to >> >  know about the properties of ballot(), and the rules with respect to >> >  the CFG (and maybe consider the target) to know where to insert the >> >  intrinsics. > >> But the same is true for basically any approach to handling this. In >> fact, adding the merge intrinsics makes this much easier. Beyon...
2019 Jan 24
3
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
I don't see how this would fix the continue vs. nested loop problem I explained earlier. That is, how would this prevent turning: for (...) { ballot(); if (... /* non-uniform */) continue; } into for (...) { do { ballot(); } while (... /* non-uniform */); } and vice versa? Note that there's no duplication going on here, and the single-threaded flow of control is exactly the same. Another reason this isn't so grea...
2019 Feb 09
1
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
...anywhere in a basic block. Otherwise, we'd have to allow for cases where there's a trivial edge from a basic block with one sucessor to a block with one predecessor that can't be eliminated. For example, in the single-break case mentioned earlier: while (true) { if (...) { ballot(); // should be executed before re-converging. break; } } ballot(); // should be executed after re-converging With a merge instruction, the two ballots could be in the same basic block, with a merge instruction separating them, versus two basic blocks with the second marked as a merge...
2018 Dec 29
1
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
...al to hoist syncthreads out of an "if", but it's > not legal to sink it into an "if".  It's not clear to me why we > can't have "anticonvergent" (terrible name) functions which cannot > have control-flow dependencies removed from them?  ballot() would be > both convergent and anticonvergent. > > Would that solve your problem? > > > I think it's important to note that we already have such an attribute, > although with the opposite sense - it's impossible to remove control > flow dependencies fr...
2018 Dec 19
5
[RFC] Adding thread group semantics to LangRef (motivated by GPUs)
...we proceed to get this solved? The Problem =========== Programming languages for GPUs have "cross-lane" or "subgroup" operations which allow fine-grained exchange of data between threads being executed together in a "wave" or "warp". The poster-child is ballot, which takes a boolean argument and returns a bitmask of the value of the argument across the "subgroup"/"wave"/"warp", but more complex operations exist as well e.g. for reducing a value across all active lanes of a wave or for computing a prefix scan. The key is...
2011 May 04
1
Why do I sometimes have to refresh the page manually after an AJAX form submission?
...y to see the results? My jQuery handler is very simple: $("#vote_yes").click(function() { $("#approval").val(true) $(".edit_vote").submit() }); And the link that leverages this bit of code is as follows: <%= link_to("Vote Yes", @ballot, :class => "buttons", :id => "vote_yes") %> After using this link to submit the form on the page, however, sometimes I need to refresh before I see any changes. Why is this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subs...
2005 Jun 30
3
Vote for CentOS - AGAIN :)
...ice Awards" at Linux Journal. CentOS was nominated in the "distribution:" category along with 18 other Linux distros ... and we finished in the top 3 (along with Ubuntu and FedoraCore). Thanks to every one who voted for CentOS. I really did not expect that we would be on the final ballot, though I am honored that we are. Now, lets do it again, and shock the world :) Please go to Linux Journal and vote for CentOS !!! http://www.linuxjournal.com/article/8272 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-si...
2004 May 06
4
Cisco 7920 Image
...ess to the latest 7920 images? I've got one w/ asterisk that is exhibiting a few of the documented bugs running 1.0.3 (1.0.7 is the latest IIRC). Thanks! -- /* Ian A. Underwood - agentgrn@dcne.net - http://www.agentgreen.org There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now. */
2010 Nov 05
7
nut on pclos-2010.7
...n. configure.in:287: error: possibly undefined macro: AC_DISABLE_STATIC autoreconf: /usr/bin/autoconf failed with exit status: 1 I have NDI if m4 stuff is needed or even installed, so whats next? Thanks muchly. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Wasn't there something about a PASCAL programmer knowing the value of everything and the Wirth of nothing?
2023 May 22
3
got nut 2.8.1 but despite reinstall, shows 2.7.4
gene heskett <gheskett at shentel.net> writes: > Which file in the nut I pulled a month ago, should I start with to get > the new version actually running? I still get - -V=2.7.4 It is likely that you have built new nut but old nut is still on your system. I do a 'sudo make install' to write over the distribution nut (on NetBSD/pkgsrc, surely not what you are using).
2020 Jun 22
5
Low Battery Problems
...i at rpi4:~ $ upscmd myups test.battery.start.deep Username (pi): pi Password: Unexpected response from upsd: ERR ACCESS-DENIED Back to scratching head. That gets boring too. Thanks, Larry. > --Larry Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
2009 Feb 27
5
ietf discussion about draft-ietf-avt-rtp-speex
Hi Jean-Marc, Alfred and Greg, Are you receiving the mails from IETF about draft-ietf-avt-rtp-speex The mails are not coming from AVT mailing list, but I think we are all 3 part of a minimal list (draft-ietf-avt-rtp-speex at tools.ietf.org) dedicated to latest discussion about the draft. I have answered some questions, but there are small changes and adaptation still required to the ietf
2018 Aug 11
1
After years, upsmon says I've no perms
...* /etc/nut/upsmon.conf line 77: invalid directive upsmon master UPS: myups at localhost (master) (power value 1) Using power down flag file /etc/killpower Whats next? No conf has been touched in years. -- Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
2023 Jun 19
1
had to reinstall on new drive, lost all nut related .conf's
...o I start and what do I added to which files in /etc/nut so I can type "upsc myups" and get a status report? Its been years since I dived thru all these flaming hoops the last time. Thanks. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>