[-] maggoats@lemmy.world 3 points 10 months ago

Great post. Full of useful tips I always need to remind myself of.

[-] maggoats@lemmy.world 1 points 10 months ago

I had one til a few months ago!

[-] maggoats@lemmy.world 1 points 11 months ago

The closest thing I've been able to find so far (which seems to have been under slow development by 1-2 contributors for the past couple years) is https://github.com/MPSQUARK/BAVCL which is based on ILGPU. I'll probably be keeping an eye on it though.

[-] maggoats@lemmy.world 2 points 11 months ago

Unfortunately I don't believe NumPy has any built in accelerations (other than being a C library which is fast already), though I don't really know the ins and outs. There are Python libraries that use the NumPy API or otherwise do some stuff to accelerate it on e.g. CUDA, but the Numpy.NET library as far as I know uses its own embedded Python + numpy, so as far as I can tell that wouldn't be an option.

[-] maggoats@lemmy.world 2 points 11 months ago

Unfortunately not, though I forgot about SIMD! It doesn't seem to support arbitrary-sized matrices or arrays out of the box, though I guess I could index the vector type myself. Still, it doesn't offer the operations I'd like, as far as I can tell.

Thanks though!

27

Hi!

I'm looking for a C# library for matrix operations and preferably some linear algebra or optimization routines. Basically a NumPy/SciPy or PyTorch.

Ideally there'd be support for various backends (e.g. CPU, CUDA, OpenCL) for operations where possible.

As far as I can tell, there's Math.NET Numerics, Numpy.NET (which binds to Python's numpy), and NumSharp (which hasn't had commits since 2021), which seem to fit the bill mostly, though none are accelerated.

Otherwise, there are some libraries I've forgotten that seem to specifically target CUDA, which is too selective for my purpose. Maybe it was Hybridizer, which seems like its own compiler, which I'm not sure would work for me either.

There's also ComputeSharp which lets you write shaders directly in C#, though targets DirectX if I understand well.

The closest thing I've found is ILGPU, which seems brilliant since it JIT compiles kernels to CPU, CUDA, and OpenCL. The problem is I believe I'd need to write my own operations and kernels and essentially implement my own matrix compute library, though there seems to be some work on it, so maybe what I'm looking for is supported out of the box, minus optimization algorithms and so on.

Basically, does anyone have any pointers?

[-] maggoats@lemmy.world 4 points 1 year ago

Got an XPS 13 9350, works fine, bluetooth and all, though I upgraded Ubuntu and the kernel and the integrated webcam hasn't worked since, which I still don't really understand.

[-] maggoats@lemmy.world 3 points 1 year ago

This may not be relevant since I have a different gpu and am on Ubuntu, but when I installed proprietary drivers I didn't have display either because I was using a version of the driver that was too recent (whether due to dropped compatibility or a bug I don't know). An older one might work!

[-] maggoats@lemmy.world 4 points 1 year ago

Google en passant

[-] maggoats@lemmy.world 1 points 1 year ago

There might be some kind of trust system that could work. I have no idea of course but I'm envisioning something like Stack Overflow's system and a bit of community correction and authority à la Wikipedia.

[-] maggoats@lemmy.world 1 points 1 year ago

Why can't the government just build it as a public utility?

[-] maggoats@lemmy.world 4 points 1 year ago

That's actually not true, right? https://www.iea.org/data-and-statistics/charts/global-co2-emissions-from-transport-by-sub-sector-in-the-net-zero-scenario-2000-2030

In 2019 there are 6.08 Gt from road vehicles compared to the 0.87 Gt from shipping. That's just overwhelming.

[-] maggoats@lemmy.world 3 points 1 year ago

Yeah, I saw a link to a study that modeled outcomes within the next fre decades where acidification kills enough marine life and favors the reproduction of other microbes. Something about either low oxygen in the oceans and/or the atmosphere, or maybe a dangerous increase in stmospheric toxins resulting from that.

Maybe I'll try and find it to verify.

27

Shamelessly cross-posted from https://lemmy.world/post/390718 since I was looking for a procedural generation community and didn't find one!

This was something I was toying around with in Godot 3.4 some time back. It uses shaders for generation from simple noise + thresholds.

4
submitted 1 year ago by maggoats@lemmy.world to c/asklemmy@lemmy.ml

Just a random thought experiment. Let's say I have my account on a lemmy instance: userA@mylemmy.com. One day I decide to stop paying for the domain and move to userA@mynewlemmy.com, and someone else gains it and also starts up a lemmy instance.

If they make their own userA@mylemmy.com, how do federated instances distinguish who's who?

Have I misunderstood the role of domain names in this?

5
submitted 1 year ago by maggoats@lemmy.world to c/world@lemmy.world
2
submitted 1 year ago by maggoats@lemmy.world to c/world@lemmy.world
10
submitted 1 year ago by maggoats@lemmy.world to c/world@lemmy.world
2
submitted 1 year ago by maggoats@lemmy.world to c/world@lemmy.world
1
submitted 1 year ago by maggoats@lemmy.world to c/world@lemmy.world
view more: next ›

maggoats

joined 1 year ago