A list of puns related to "Shmem"
Crates.io: https://crates.io/crates/typed_shmem Github: https://github.com/UpsettingBoy/typed_shmem
Some moths ago I started experimenting with IPC in Rust and I came to find shared_memory create. I really like it except the part where I needed to cast bytes into the type I was using in the shared memory region.
I found that prone to errors (like forgetting the type of the shared memory), although I can understand why that design decision.
After that, I decided to create my own crate (and ofc learn along the way). So here I present it in case someone find it useful.
Keep in mind that I am not very experienced with unsafe behaviors so if someone could help me reviewing the unsafe code under unix.rs and windows.rs it will be very appreciated!
Also thanks to the people of the rust community discord for some tips!.
I'm having trouble with the VM not generating a shmem file for this device
<shmem name='scream-ivshmem'>
<model type='ivshmem-plain'/>
<size unit='M'>2</size>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
</shmem>
i looked in the dev/shm folder but it was empty while the VM was running. I'm running a single GPU pass through and I noticed that when I disabled all of my startup scripts and removed the gpu's pcie devices, it created the file as expected.
This leads me to belive that there's something in my startup script that is preventing the creation of the file.
Heres what the startup script looks like
#!/bin/bash
sleep 3
set -x
#beep
# Stop display manager
systemctl stop display-manager
# rc-service xdm stop
echo 0 > /sys/class/vtconsole/vtcon0/bind
echo 0 > /sys/class/vtconsole/vtcon1/bind
# Unbind EFI Framebuffer
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
sleep 3
# Unload NVIDIA kernel modules
modprobe -r nvidia_drm
modprobe -r nvidia_modeset
modprobe -r nvidia_uvm
modprobe -r i2c_nvidia_gpu
# Unload AMD kernel module
# modprobe -r amdgpu
#sleep 2
# Detach GPU devices from host
# Use your GPU and HDMI Audio PCI host device
virsh nodedev-detach pci_0000_01_00_0
virsh nodedev-detach pci_0000_01_00_1
virsh nodedev-detach pci_0000_01_00_2
virsh nodedev-detach pci_0000_01_00_3
virsh nodedev-detach pci_0000_00_01_0
# Load vfio module
modprobe vfio
modprobe vfio-pci
modprobe vfio_iommu_type1
I'd appreciate any and all help.
I'm trying to use a Linux program on Android, but getting shared memory errors, and would like to implement libandroid-shmem with my program so that it will work in termux. I'm not very good with Linux, but if I was to ask someone else to help me with this, what would be the proper terminology to use to describe how I'd like to implement this into my program?
I feel like I'm a bit over my head with this, but I'd really like to get this certain program running on Android.
Thanks.
I don't want to step on anybody's toes here, but the amount of non-dad jokes here in this subreddit really annoys me. First of all, dad jokes CAN be NSFW, it clearly says so in the sub rules. Secondly, it doesn't automatically make it a dad joke if it's from a conversation between you and your child. Most importantly, the jokes that your CHILDREN tell YOU are not dad jokes. The point of a dad joke is that it's so cheesy only a dad who's trying to be funny would make such a joke. That's it. They are stupid plays on words, lame puns and so on. There has to be a clever pun or wordplay for it to be considered a dad joke.
Again, to all the fellow dads, I apologise if I'm sounding too harsh. But I just needed to get it off my chest.
Do your worst!
I'm surprised it hasn't decade.
I finally got it working on a Dell Precision 7750 for work. It's a pretty capable laptop, with an Intel i9-10885H with UHD graphics, 32 GB RAM, and a NVIDIA Quadro RTX 4000.
My host OS is Gentoo 5.15.11 running X11 on the Intel UHD. The kernel is module-less and an efistub so IOMMU and vfio-pci are built in. So for those to work I have the following built-in kernel command-line options:
iommu=pt intel_iommu=on vfio-pci.ids=10de:1eb6,10de:10f8,10de:1ad8,10de:1ad9
Those PCI IDs belong to the Quadro card. Luckily it's in its own IOMMU group along with a PCI bridge. The bridge was excluded in the PCI pass-through.
First, I set up Windows 10 in virt-manager as a regular VM with QXL graphics, a custom ACPI table, the Looking Glass IVSHMEM device, and with KVM hidden.
I performed the usual installation of the virtio-win drivers and installed TightVNC so I could eventually connect to the VM without the QXL graphics. The Looking Glass IVSHMEM device driver was also installed according their instructions.
Only once that was all working did I start making changes to the libvirt domain XML for the PCI pass-through. The Quadro card was added through the virt-manager interface and I edited the XML taking care to make sure all of its components were connected to the same PCI bus and slot. I gave each component an alias name in order to be able to set the sub device and vendor IDs to what they said they were in bare-bones Windows. This step was important for getting this to work for me, thankfully I found this post which outlined it nicely.
One option that resulted in a black screen upon boot-up was manually setting the VBIOS ROM.
I also passed the VM audio to my PulseAudio server on the host.
Once the PCI pass-through VM was booted up I installed the NVIDIA drivers and, using the NVIDIA Control Panel, set one of my graphics outputs f
... keep reading on reddit β‘For context I'm a Refuse Driver (Garbage man) & today I was on food waste. After I'd tipped I was checking the wagon for any defects when I spotted a lone pea balanced on the lifts.
I said "hey look, an escaPEA"
No one near me but it didn't half make me laugh for a good hour or so!
Edit: I can't believe how much this has blown up. Thank you everyone I've had a blast reading through the replies π
It really does, I swear!
Theyβre on standbi
A lot of the work I am interested to do will be mostly built from scratch by myself, provided there is fair support for numerical types (like complex numbers) and high precision numerical operations (if not, I'll be happy to write those routines as well). Many of my areas of interest are computationally demanding (python codes choke for large enough datasets) but are often parallelizable, and I am looking for guidance on implementing the same. I love math and physics, especially domains that involve rigorous analysis, ranging from physical/mathematic concepts like turbulence, topology, wave optics, electromagnetism and quantum physics to computational concepts like cryptography and information theory. I also love signal processing, especially relating to random and sparse signals. They require a decent amount of precision while simultaneously being fast enough. I wish to be able to run the code on low power and high power manycore or SIMD processors, with the sequential parts being run on a general-purpose processor or highly pipelined FPGA. Energy efficiency is one of my key targets along with speed (many scenarios are energy constrained) even if it requires a longer and customized code. Another area of interest I have, while not my primary goal is to implement redundancy using parallelism (including different compression storage methods: eg RAID). I would like to have some control over the different memory allocations (hierarchies of caches and scratchpad memories) and if possible, some of the caching schemes while still being usable across multiple architectures. If possible, options to optimize for burst and broadcasting, prescence or absence of hardware lockstep, depending upon hardware support (use of switches to do different routines for different hardware when it comes to memory copy and allocation, basically caching). Sorry for the long and open ended question, I realized it would be hard to really come to a decision without getting a holistic picture of the whole domain atleast to a fair level of depth. I am looking for suggestions in both hardware and software for the same.
My primary concern is software - including but not limited to languages, compilers and directives. Being not from a software programming background, I find it hard to search for the proper areas (and keywords). I would like to share my current understanding of the scenario in terms of software - I have currently explored Cuda, OpenCL, Fortran, OpenMP, OpenMPI, OpenACC, Julia
... keep reading on reddit β‘Pilot on me!!
Nothing, he was gladiator.
Dad jokes are supposed to be jokes you can tell a kid and they will understand it and find it funny.
This sub is mostly just NSFW puns now.
If it needs a NSFW tag it's not a dad joke. There should just be a NSFW puns subreddit for that.
Edit* I'm not replying any longer and turning off notifications but to all those that say "no one cares", there sure are a lot of you arguing about it. Maybe I'm wrong but you people don't need to be rude about it. If you really don't care, don't comment.
When I got home, they were still there.
I won't be doing that today!
[Removed]
This morning, my 4 year old daughter.
Daughter: I'm hungry
Me: nerves building, smile widening
Me: Hi hungry, I'm dad.
She had no idea what was going on but I finally did it.
Thank you all for listening.
You take away their little brooms
There hasn't been a post all year!
Where ever you left it π€·ββοΈπ€
It was about a weak back.
Why
Itβs pronounced βNoel.β
After all his first name is No-vac
What, then, is Chinese rap?
Edit:
Notable mentions from the comments:
Spanish/Swedish/Swiss/Serbian hits
French/Finnish art
Country/Canadian rap
Chinese/Country/Canadian rock
Turkish/Tunisian/Taiwanese rap
There hasn't been a single post this year!
(Happy 2022 from New Zealand)
What did 0 say to 8 ?
" Nice Belt "
So What did 3 say to 8 ?
" Hey, you two stop making out "
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.