@jaggedSpire You forget to mention @Mikhail. Don't you just love that guy? No matter how low your life seems to be, you come here and hear him whining, you just know that somewhere in this world, there is person whose life is lower than yours. BTW, he pretends that he has blacklisted me.
@sehe In quantum physics, you can not say anything with certainty. Maybe someday someone would hijack this account, and I am not me anymore ... it's possible.
Random thought: difference between Linux and Windows is the granularity that floating point registers are saved at during context switches. Also having AVX512 compared to AVX256 :-)
@jaggedSpire That's a way to conjure Mik, see, he's here.
Also instead of training a Machine Learning model before using it, I wonder whether there is a way to train it while using the model ... like incremental training.
Net temperature change = (heat energy in - heat energy out)/SUM(mass x heat capacity of the medium) ... of course you have to modify the energy required for state transition like ice melting in the Arctic.
Thus the more heat energy in (like burning coal, getting solar energy from outer space - some of which would otherwise be reflected) without getting the same amount of energy out, you would get net temperature increase.
But instead people complaining about how it could be used as weapons. The chance of it being used as weapon is small, the chance of global warming resulted because of this is definite.
KeSaveExtendedProcessorState you can choose which SIMD registers you will use (aka SSE,AVX, legacy), I think in linux kernel_fpu_begin uses a fault mechanism, although the new kernel is phasing this stuff out (much to the chagrin of ZFS)
user3956566
02:37
user3956566
@TelKitty newest arrival came yesterday. You will meet her this week
So, I'm extremely exhausted but I agreed to review this paper. I've reviewed a lot for this journal. The journal is legitimate. Do you think they'd forgive me if I call the author's results "fake and gay"?
When dispatching a task, it puts it in the queue. Then it checks to see if any threads are idle. If there are, it cv.notify_one(). Otherwise, it spawns a new thread. If the thread limit is reached, it does nothing.
Right now, for the case where the threads are uncapped, this is beating my decentralized method.
The decentralized pool has an array of thread handles.
Each thread is either idle of busy. If its work pointer is null, it is idle.
When dispatching work, you locklessly pick a random thread handle and check its work pointer.
No, I'm thinking of the absolute simplest producer consumer queue. The producer can either push work, or consume. If the queue is large it consume, thus rate limiting. Every push work is followed by a notify_one().
you said there is some idleness check, which seems extra, the producer doesn't need to know the state of the consumers, all it needs to know is if the queue is filling up
Oh I know why I did that. I had an earlier design where the queue potentially had multiple input sources. So it had the potential to get into a temporary state where the queue wasn't empty and one of the threads was idle.
But I fixed that bug, so this should be needed anymore.
actually it might be needed because there is thread warm up time, so you might be producing for a few dozen ms before the first consumer is launched :-)
Feels like you'd rather quickly just launch the max threadpool number of threads, especially when you have more work elements than threads (which is often the case)
There was another reason too. If the queue is empty, you don't know if all the threads are busy or not. If you wait to leave something on the queue, you're missing out on concurrency.
@Mikhail The threads are being created lazily in this case.
This task queue implementation is actually intended for a non-computational task. So I didn't really try to make it efficient. But the best way to test it is to actually implement my program's parallel framework interface and run it through a full computation.
The whole thing is a farce, it will almost certainly result in the max number of thread being launched. Just launch max number of threads and call it a day.
@Mikhail Max number of threads is unknown. I can't just use the # of cores in the whole system since the scope of this pool may not have the full allocation.
For the usage that I'm targeting, it's probably not even going to get near full subscription of the system anyway. And I'm not a fan of spawning a bunch of threads just to tear it down later without using half of them.
Oooh, the difference is smaller on my 14-core. The task-queue wins, but by a tiny bit. I'm gonna try upping the recursive fan-out threshold in my decentralized pool to see if that does anything.
The task-queue is able to spawn any # of threads in a single generation. But the decentralized pool needs several generations before it reaches full size.
I think we're thinking of different things. You're thinking of thread creation. The generational fan-out that I'm talking about is the dispatching of a large for-each fork-join with many iterations.
In the steady-state case, all the threads are already created.
In the task-queue, it simply iterates the loop and dumps one unit each into the queue.
In the decentralized case, it recursively splits the iterations into small parts and re-dispatches each part. Thus it takes several rounds before everything is dispatched.
lol, it worked. Now the decentralized pool is faster than the task-queue again.
Well, gentlemen, unit tests pass and submit paper to nature family journal. Random chick tells me something related to penis size about "what makes a man". heteronomative friend has gay sex with rando stranger who is hitting on me for years. Chick I like ghosts me. Go home and bake pizza. If its not deliver its not DiGiorno Pizza (TM). Can't leave Urbana Champaign because PI has conflict of interest that is managed. Says 26 papers is not enough. Head of dept. says "I don't know what to do"
I also got a few students into grad school, to the benefit of my immortal soul the Chinese productive strategy is called get into grad school and inherit >200K or more from parents. Also get married in 3 months.
Then don't do any work
Ugg. I have to mentor and teach kids who are in some ways heading to oblivion. Fortunately, I have had no students who are US work authoriz-ed who aren't complete shit.
Fug. I should have taken the job from Amazon (maybe), nvidia, citadel or GS
So, I'm thinking about this problem. How to invert a moving average. That is, you measure the moving average, how close can you come to recovering the underlying signal?