This is both CPU and GPU main memory. How to avoid copying buffers from and to the same memory?
Allocate aligned memory
// note: buffer_size is re-written in placevoid*zerocopy_alloc(size_t&buffer_size){// OpenCL zero-copy buffers need to be aligned on a page size (i.e., 4KB),// and the allocated …
AMDGPU-PRO is the closed-source implementation of OpenCL 2.x for AMD. It only targets AMD GPU. AMD used to provided a CPU target, but it is OpenCL 1.2 only.
rocm is the heterogeneous computing effort of AMD, and is open-source. It …
A good introduction about lldb is this presentation at the Apple developper conference [1]. For something more focused on ARM, see [2], and for something more focused on FreeBSD, see [3] and [4].
Wouldn't it be nice to let people play with gdb and inapp from the internet?
Yeah, but wait a minute, people would take control of the host computer and use its network connectivity of other and unintended purposes. Especially since the demo gives you access to a working gdb session …
Howto download a binary as a stream using javascript?
It may look easy to do with good old XMLHttpRequest, but actually, it is not as obvious. In binary mode, the response object returned by XMLHttpRequest is always complete. Chunked responses are only possible using non-standard moz-chunked-arraybuffer transfer mode (only support …
The long awaited quest of the USB On-the-Go with mainline Linux kernel 4.x.
Introduction
As already documented here before, it is possible to configure FriendlyARM's NanoPi Neo to behave as an USB Ethernet/RNDIS gadget device. Unfortunately this functionality relied on legacy/hacked sunxi kernel. This kernel (3.x …
The FrameDecorator example given in the documentation does not work?
If you naïvely try the implement your own MyFrameFilter following the example of the InlineFilter given in the gdb (holy?) documentation [1], you may face the following python errors.
Import issue
class MyFrameDecorator(FrameDecorator):
TypeError: Error when calling the metaclass …
How to run a docker container from another docker container?
Create a docker image which runs jenkins. A jenkins task will prepare a data
folder to be used along with another docker container. At the end the two containers will run
side by side. The container spawned by the jenkins …
Setting-up the USB OTG port as an Ethernet 'gadget' device.
About "sunxi"
sunxi is the community working on the open-source environment for Allwinner chips... but it has to be kept in mind, and they write it right on the top of the front page[1], that:
Cute little ARM board (inner active ingredient) + Tiny 3D-printed housing (color plastic hull) + Transparent sticker (attractive branding) = your new medication for pretty printing.
The Nano Pi NEO
The Nano Pi Neo is a cheap Chinese ARM board with everything needed (Ethernet, On-the-Go USB) and a tiny 40x40mm form-factor [1].
Printk-time uses the routine sched_clock() in the kernel. On some platforms, sched_clock() only has a resolution of 1 jiffy (which may be 10 milliseconds or longer). This means that you will only see the time increment at this …
Everything below comes from reading kprobes.txt at [1].
Summary
There are kprobes and jprobes. jprobes are specialized kprobes for function calls, making it easier to get the function parameters. It is usually useful to filter function call traces according to the value …
But wait! What happens when I use Chinese input? ...types CTRL+Space and start composing... Oh shit!~[1]
Capturing key strokes is nice, but it does not support virtual keyboard like on tablet or smartphones and more advanced input methods such as Chinese/Japanese or other writing systems.
OpenSearch is a standard way to make a webbrowser know that your page is actually a search engine. Mozilla [1] and Microsoft [2] explain you how to do it, but a quicker tutorial is found there [3].