ciflow/torchtitan/179229: [inductor] makes cuda 13.0 cross compliation works (#179229)
Summary: CUDA 13.0+ ships a hybrid cudart.lib that contains MSVC-compiled static objects referencing GS security symbols (__security_cookie, __security_check_cookie, etc.) which MinGW cannot resolve, causing undefined reference errors during Windows cross-compilation. This diff adds a _ensure_mingw_cudart_import_lib() function to cpp_builder.py that automatically generates a pure MinGW-compatible import library (libcudart.a) from the CUDA runtime DLL using gendef + x86_64-w64-mingw32-dlltool. If WINDOWS_CUDA_HOME is not set or libcudart.a already exists, no action is taken. Locates cudart64_*.dll in the CUDA bin directory, generates a .def file via gendef, and creates libcudart.a via dlltool. Falls back gracefully to the original cudart.lib if gendef/dlltool are unavailable or fail to supp
Summary:
CUDA 13.0+ ships a hybrid cudart.lib that contains MSVC-compiled static objects referencing GS security symbols (__security_cookie, __security_check_cookie, etc.) which MinGW cannot resolve, causing undefined reference errors during Windows cross-compilation.
This diff adds a ensure_mingw_cudart_import_lib() function to cpp_builder.py that automatically generates a pure MinGW-compatible import library (libcudart.a) from the CUDA runtime DLL using gendef + x86_64-w64-mingw32-dlltool.
If WINDOWS_CUDA_HOME is not set or libcudart.a already exists, no action is taken. Locates cudart64_.dll in the CUDA bin directory, generates a .def file via gendef, and creates libcudart.a via dlltool. Falls back gracefully to the original cudart.lib if gendef/dlltool are unavailable or fail to support lower version like 12.6._
Test Plan: ci
Differential Revision: D99398736`
Assets 2
Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
availableversion
Contra Nina Panickssery on advice for children
I recently read this post by Nina Panickssery on advice for children. I felt that several of the recommendations are actively harmful the children they are aimed at. I am going to assume that this advice is targeted at children who are significantly more intelligent than average and maybe 7-12 years of age? It may be worth reading the original post beforehand, or maybe having it open in another tab while you read through this one. We'll go through the points one by one: "Don't be a sheep" . There's a difference between noticing when other people are wrong and actively assuming everyone else is dumb. This leans towards the second. There is a huge amount of evolutionary pressure that has gone into designing kids' behaviour; survival past childhood is pretty important if you want to have kids

The Garden
The mandate had been given by God that morning, and Nathanael and Amon had arrived in the nascent realm to shape His will. The task was simple: creation, in all its perfection. As divine as this instruction was, it did demand a great deal of creativity on the part of his favourite agents. Helpfully, He had gotten them started with all of the matter and energy that they would need. Indeed the task was arguably trivial in that they had only a single universe to tend to, the others being helpfully tended to by myriad other angels. They quickly got to work, shaping all the countless galaxies and stars, which took no time at all, and then focused on the most important task of all. Creating paradise on earth. The earth started as a great brown ball, covered in water. To give it shape and colour

EmDash: A Full-Stack TypeScript CMS Built on Astro + Cloudflare — Can It Replace WordPress?
Originally published at recca0120.github.io WordPress powers 43% of the web, but it was born in 2003. PHP + MySQL, plugins with full database access, content stored as HTML coupled to the DOM. After twenty years, it's fair to rethink the whole thing. EmDash is that attempt. Full-stack TypeScript, running on Astro, backed by Cloudflare infrastructure. Still in beta, but the architecture is worth examining. How It Differs from WordPress Let's start with the biggest differences. Sandboxed Plugin Isolation 96% of WordPress security vulnerabilities come from plugins. The reason is straightforward: plugins run in the same PHP process as the core, with full access to the database and filesystem. One bad plugin exposes the entire site. EmDash uses Cloudflare Workers' Dynamic Worker Loaders for iso
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Releases

Contra Nina Panickssery on advice for children
I recently read this post by Nina Panickssery on advice for children. I felt that several of the recommendations are actively harmful the children they are aimed at. I am going to assume that this advice is targeted at children who are significantly more intelligent than average and maybe 7-12 years of age? It may be worth reading the original post beforehand, or maybe having it open in another tab while you read through this one. We'll go through the points one by one: "Don't be a sheep" . There's a difference between noticing when other people are wrong and actively assuming everyone else is dumb. This leans towards the second. There is a huge amount of evolutionary pressure that has gone into designing kids' behaviour; survival past childhood is pretty important if you want to have kids

The Garden
The mandate had been given by God that morning, and Nathanael and Amon had arrived in the nascent realm to shape His will. The task was simple: creation, in all its perfection. As divine as this instruction was, it did demand a great deal of creativity on the part of his favourite agents. Helpfully, He had gotten them started with all of the matter and energy that they would need. Indeed the task was arguably trivial in that they had only a single universe to tend to, the others being helpfully tended to by myriad other angels. They quickly got to work, shaping all the countless galaxies and stars, which took no time at all, and then focused on the most important task of all. Creating paradise on earth. The earth started as a great brown ball, covered in water. To give it shape and colour

AI Data Centers Aren’t the Problem—Outdated Policy Frameworks Are, New Report Finds
WASHINGTON—Concerns about the rapid growth of artificial intelligence (AI) data centers are widely misdiagnosed, leading to ineffective policy responses, according to a new report from the Center for Data Innovation.

Windows 11 will be force-updated to version 25H2 using machine learning
According to Microsoft's latest timeline, Windows 11 25H2 will soon be rolled out to all devices running the Home and Pro editions of Windows 11 24H2. The latter is set to reach the end of official support on October 13, 2026, and Redmond is clearly aiming to move as many... Read Entire Article

Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!