Closed LeBron-Jian closed 4 months ago
这边只负责维护 xmake 自身构建配置和编译问题,用户项目代码自身问题和崩溃,这边不处理,你可以自己研究解决。
Bot detected the issue body's language is not English, translate it automatically.
This side is only responsible for maintaining xmake's own build configuration and compilation issues. Problems and crashes of the user project code itself will not be dealt with here. You can research and solve them yourself.
这边只负责维护 xmake 自身构建配置和编译问题,用户项目代码自身问题和崩溃,这边不处理,你可以自己研究解决。
好的,谢谢
Bot detected the issue body's language is not English, translate it automatically.
This side is only responsible for maintaining xmake's own build configuration and compilation issues. Problems and crashes in the user project code are not handled here. You can research and solve them yourself.
OK, thanks
Xmake 版本
xmake version :xmake v2.7.3+HEAD.b35ff3118, A cross-platform build utility based on Lua Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io
操作系统版本和架构
Windows11
描述问题
Hi, I have improved the content of xmake.lua。
Today I created a manual_seed_test project.
我引入了torch::manual_seed,运行就会crash,但是编译通过
期待的结果
只是希望引入torch::manual_seed(42); 运行不crash
工程配置
Then the content of xmake.lua is as follows
附加信息和错误日志
The contents of main.cpp are the same as before, as follows:
run code , as follows:
run result as follows:
The specific content of the project is as follows: