Attenton's recent timeline updates
Attenton

Attenton

V2EX member #216475, joined on 2017-02-21 17:00:14 +08:00
Today's activity rank 4637
Per Attenton's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
Attenton's recent replies
特意专门注册个账号来推广。。。被人戳穿还急
另外 xiaoyanghua 知识图谱搞不下去转头搞 agent 了?
Feb 22, 2025
Replied to a topic by jinja27 Local LLM 8 路 L40 部署 R1-671B 上限是多少呢
500G 的显存为啥会无法完全加载 370G ?推理框架现在的事实标准应该都是 vllm 吧,试下 vllm 吧
Aug 11, 2024
Replied to a topic by ChipWat Local LLM mac mini 24g 大模型推理怎么样
@unidotnet 14b 即使是 fp16 也只是大概 28G 左右,int4 怎么可能要 40G
Aug 14, 2023
Replied to a topic by Attenton C++ c++的单线程 mutex 问题
@geelaw 感谢
Aug 14, 2023
Replied to a topic by Attenton C++ c++的单线程 mutex 问题
@geelaw 感谢,这个标准的定义可以在哪看?
Aug 14, 2023
Replied to a topic by Attenton C++ c++的单线程 mutex 问题
@ysc3839 嗯嗯,我也找到了,感谢
Aug 14, 2023
Replied to a topic by Attenton C++ c++的单线程 mutex 问题
If lock is called by a thread that already owns the mutex, the behavior is undefined: for example, the program may deadlock. An implementation that can detect the invalid usage is encouraged to throw a std::system_error with error condition resource_deadlock_would_occur instead of deadlocking.

If the mutex is currently locked by the same thread calling this function, it produces a deadlock (with undefined behavior).

是个 undefined behavior ,不能这样使用,结贴😓


Reference:
https://en.cppreference.com/w/cpp/thread/mutex/lock
https://cplusplus.com/reference/mutex/mutex/lock/
Aug 14, 2023
Replied to a topic by Attenton C++ c++的单线程 mutex 问题
@iwdmb
(base) root@ubuntu:/home# ./a.out
n = 5
n = 4
n = 3
n = 2
n = 1
n = 0
(base) root@ubuntu:/home# g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

以上是我的执行结果,没搞懂是哪的问题
Aug 14, 2023
Replied to a topic by Attenton C++ c++的单线程 mutex 问题
补充:CmakeLists.txt 里面没有添加任何编译选项,cmake 版本是 3.18 , 用的 c++ 17
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1541 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 16:36 · PVG 00:36 · LAX 09:36 · JFK 12:36
♥ Do have faith in what you're doing.