News for hackers. Stuff that matters.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by amelius on Monday August 27, 2018 @05:40AM (#17850409)
I wonder when/if we get full CUDA support in mainstream NumPy (not as an extension).
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by sorenjan on Monday August 27, 2018 @08:23AM (#17850975)
Hopefully we'll get vendor independent GPGPU support before that, I'm tired of Nvidia lock in. There's nothing free or open about software that only works on one company's hardware.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by tonic_section on Monday August 27, 2018 @05:53AM (#17850439)
CuPy shares a lot of the Numpy API. I've found it pretty interchangable in most applications.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by amelius on Monday August 27, 2018 @08:21AM (#17850966)
That's great, but I'm hoping that NumPy will incorporate something like this because that will better ensure that the APIs remain compatible in the future, and that they will get continued support.

(I can't convince my boss to use any library unless it has a reasonable guarantee of long-term support.)

Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by brian_herman on Sunday August 26, 2018 @11:19PM (#17849250)
awesomesauce! This is the kind of things that give me hope in the future of programming!
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by foadsf on Monday August 27, 2018 @02:38AM (#17849805)
it is confusing to see scientists use vendor specific tools over neural ones. this promotion of one corporation over the rest. IMHO this is against the spirit of academia. I will personally not use Pytorch or any tool based on CUDA.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by targafarian on Monday August 27, 2018 @05:00AM (#17850274)
I don't think scientists would hold up scientific progress to take a hard-line stance like you are presenting; but that's even irrelevant as PyTorch supports CPUs already (AMD, Intel, ..?) and AMD/PyTorch are close to supporting AMD GPUs, too, if that's your jam. https://github.com/pytorch/pytorch/issues/10670
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by marmaduke on Monday August 27, 2018 @03:47AM (#17850034)
Proprietary or not is orthogonal to a scientific question. In case of PyTorch use, you can run with or without CUDA or even port it to eg OpenCL. The vendor hardware is only incidentally Nvidia.

That said, many projects are compute bound and the quality may be limited by speed of hardware, thus vendor dependent.

Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by greendesk on Monday August 27, 2018 @02:43AM (#17849820)
It the vendor specific tool facillitates the work of the user, why not use it? An academic is another type of a job, and using proprietary tools occurs in multiple professions. It’s use is not that different compared to other jobs.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by dbk4hn on Monday August 27, 2018 @05:30PM (#17854736)
It was scientists that started the whole accelerated computing thing. We tried everything that you could do a matrix multiply on. CellBE on the PlayStation, shader language on GPU's ... It was the success with GPU's in the early days that prompted NVIDIA to do CUDA. Yes, I wish NV wasn't proprietary! On the other hand it's the best thing going right now. There are other hardware projects in the works that may compete in the future
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by currymj on Monday August 27, 2018 @10:02AM (#17851518)
do you object to the point of a boycott for even interoperating with CUDA?

because PyTorch is still quite pleasant to use in CPU mode. it should also have support for AMD chips quite soon (and AMD's CUDA-equivalent, ROCm, at least appears to be open source).

Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by shrimp_emoji on Monday August 27, 2018 @07:05AM (#17850666)
Sadly, good engineering (or science) knows no politics.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by enriquto on Monday August 27, 2018 @07:15AM (#17850701)
Avoiding proprietary software is a good engineering practice, it has nothing to do with politics.

For the case of science, depending on closed products is obviously a malpractice.

Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by shrimp_emoji on Wednesday August 29, 2018 @11:42AM (#17869084)
I understand what you're saying. On the idealistic side in the battle between idealism and pragmatism, you're trying to negate the premise that the other side's instruments are even useful. If you can't be certain what the closed product does, how can it be a reliable source of data?

Put another way: if your goal is to not ever harm your child, how can you responsibly feed them applesauce or let doctors administer them medicine when you can't be certain what went into the making of the applesauce or of the medicine?

With a very rigorous standard, you can't. With the most rigorous standard, you can't even if the chain of trust has a single link, and you'd only use food or medicine that you, yourself, produced. But we know that few, if any people, use such rigorous standards, and that, if they did, they'd be much worse off. It's not a perfect analogy for software or hardware, but it's certainly a salient one. With your standards, it's malpractice all the way down[0].

0. http://wiki.c2.com/?TheKenThompsonHack

Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by cbcoutinho on Monday August 27, 2018 @07:19AM (#17850712)
> For the case of science, depending on closed products is obviously a malpractice.

Closed products are the norm, in science and otherwise. 'Obviously malpractice' is a silly assertion to make, as sometimes there is no other choice.

Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by kgwgk on Monday August 27, 2018 @07:30AM (#17850761)
Pencil and paper should be enough (or board and chalk). No need to use proprietary hardware either.
Re:PyTorch for Scientific Computing: Quantum Mechanics Examp... by tntn on Monday August 27, 2018 @11:26AM (#17852034)
I stopped using Linux when I realized that it could run on SPARC.