Graham Markall

3.9K posts

Graham Markall banner
Graham Markall

Graham Markall

@gmarkall

Professional interests: Python, CUDA, @numba_jit. Personal interests: RISC-V, PSXDev, OSHW, 日本語. Fun: family, cycling, running. Also @[email protected]

Lincoln, UK Katılım Mayıs 2010
604 Takip Edilen1.2K Takipçiler
Graham Markall
Graham Markall@gmarkall·
Quick reminder that I'm mainly t[oo|wee]ting on Mastodon these days: @gmarkall" target="_blank" rel="nofollow noopener">mastodon.social/@gmarkall
English
0
0
3
367
Graham Markall
Graham Markall@gmarkall·
Me on Mastodon: @gmarkall" target="_blank" rel="nofollow noopener">mastodon.social/@gmarkall I don't plan to disable this account, but I'm generally posting there these days.
English
0
1
2
546
Graham Markall
Graham Markall@gmarkall·
Do you know about automatic differentiation and / or Enzyme? Could you help sketch out how AD support for @numba_jit could be implemented? Issue / thread: #issuecomment-1303072457" target="_blank" rel="nofollow noopener">github.com/numba/numba/is…
English
2
2
5
0
Graham Markall
Graham Markall@gmarkall·
I've been on Mastodon a while but I got out of the habit of using it - this is my account that I'm starting to get active with again: @gmarkall" target="_blank" rel="nofollow noopener">mastodon.social/@gmarkall (is this usually written as @gmarkall@mastodon.social?). It has an old profile pic, still need to upload my current one.
English
0
0
2
0
Matt Harrison
Matt Harrison@__mharrison__·
What do you Python for?
English
224
41
486
0
Andrew Back
Andrew Back@9600·
The Internet was much simpler when one the biggest questions of the day was how to pronounce Pachube.
English
3
1
9
0
J C (Sickle) 🏴󠁧󠁢󠁳󠁣󠁴󠁿🇺🇦
@gmarkall @anthonypjshaw Yeah, as a lang user it's pretty well abstracted but also reasonably intuitive as to what's going on C-side (in terms of e.g. "obviously this way will create tons of allocations" etc ). It's just really interesting to look at the inner workings and lower level concepts though!
English
1
0
0
0
Graham Markall
Graham Markall@gmarkall·
I've been experimenting with using CUDA Unified Memory for the Python heap, towards a general goal of experimenting with a more unified CPU / GPU execution model within CPython, implemented as PyMemAllocatorEx instances. I have a few thoughts so far...
English
1
0
6
0
Graham Markall
Graham Markall@gmarkall·
@apmasell If you optimise for size (-Os) I would imagine you have the best chance of that happening. I'm sure I've been aware of examples of that sort of thing but need to do a bit of digging.
English
0
0
0
0
Graham Markall
Graham Markall@gmarkall·
@apmasell Maybe answering my own question, but it seems that constants in a constant pool have their own label in the asm source, so perhaps not part of the function. e.g. for 0x5f3759df in godbolt.org/z/vW3nYEcdT
English
0
0
0
0
Graham Markall
Graham Markall@gmarkall·
@apmasell Years ago I recall trying to infer the size of functions, and I was working with elf files, working it out by looking for the following symbol. I maybe was an idiot and unaware of the size entry! How does it consider constant pools located near functions? Are they part of it?
English
0
0
0
0
Graham Markall
Graham Markall@gmarkall·
@apmasell Does ELF have a way to do that if you haven't used something like -ffunction-sections?
English
0
0
0
0
Graham Markall
Graham Markall@gmarkall·
@jonathandotcel @anthonypjshaw From a language user standpoint, I don't feel it's been that important to understand the internals of CPython - before I started working on Numba I think I was pretty happy just knowing the basics of the GIL (basically only one thread executing Python code) and what the...
English
1
0
1
0
Mike Vella
Mike Vella@vellamike·
@gmarkall @anthonypjshaw I would find this very interesting. I think in a blog post it would be great to provide some more background context? (e.g what is unified memory)
English
1
0
0
0
Graham Markall
Graham Markall@gmarkall·
@anthonypjshaw 6. Finally, maybe this should have been a blog post with some code! Would that be interesting? What else should be answered / elaborated on if I write this up?
English
2
0
7
0
Graham Markall
Graham Markall@gmarkall·
5. "CPython Internals" by @anthonypjshaw is a great intro / reference to CPython, saved me a lot of time, and got me up to speed quickly for this endeavour. Highly recommended if you want to poke about with this sort of stuff! (realpython.com/products/cpyth…)
English
1
0
3
0