Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessThe Gardenlesswrong.comGeneralist’s new physical robotics AI brings “production-level” success rates - Ars TechnicaGoogle News - AI roboticsAI slop got better, so now maintainers have more workThe Register AI/MLThe Silicon Protocol: The Model Hosting Decision — When Azure OpenAI Isn’t Enough (And When It’s…Towards AIIntel — Deep DiveDEV CommunitySecrets Management for Laravel: .env, Encrypted Config, and DeploynixDEV CommunitySemgrep vs Veracode: SAST Comparison for 2026DEV CommunityClaude's Source Code Got Leaked Across The Whole InternetMatt Wolfe (YouTube)OpenAI alums have been quietly investing from a new, potentially $100M fundTechCrunch VentureVibeNVR v1.25.3 – Open-source, self-hosted NVR for IP camerasDEV CommunityEmDash: A Full-Stack TypeScript CMS Built on Astro + Cloudflare — Can It Replace WordPress?DEV CommunityNational Robotics Week 2026 Highlights AI-Driven Automation & Physical AI's Manufacturing Impact - Design NewsGoogle News - AI roboticsBlack Hat USADark ReadingBlack Hat AsiaAI BusinessThe Gardenlesswrong.comGeneralist’s new physical robotics AI brings “production-level” success rates - Ars TechnicaGoogle News - AI roboticsAI slop got better, so now maintainers have more workThe Register AI/MLThe Silicon Protocol: The Model Hosting Decision — When Azure OpenAI Isn’t Enough (And When It’s…Towards AIIntel — Deep DiveDEV CommunitySecrets Management for Laravel: .env, Encrypted Config, and DeploynixDEV CommunitySemgrep vs Veracode: SAST Comparison for 2026DEV CommunityClaude's Source Code Got Leaked Across The Whole InternetMatt Wolfe (YouTube)OpenAI alums have been quietly investing from a new, potentially $100M fundTechCrunch VentureVibeNVR v1.25.3 – Open-source, self-hosted NVR for IP camerasDEV CommunityEmDash: A Full-Stack TypeScript CMS Built on Astro + Cloudflare — Can It Replace WordPress?DEV CommunityNational Robotics Week 2026 Highlights AI-Driven Automation & Physical AI's Manufacturing Impact - Design NewsGoogle News - AI robotics
AI NEWS HUBbyEIGENVECTOREigenvector

ciflow/torchtitan/179229: [inductor] makes cuda 13.0 cross compliation works (#179229)

PyTorch Releasesby GasoonjiaApril 6, 20261 min read0 views
Source Quiz

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

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

availableversion

Knowledge Map

Knowledge Map
TopicsEntitiesSource
ciflow/torc…availableversionPyTorch Rel…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 211 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Releases