上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 步骤如下 安装 https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/ 启动 使用systemd的方式启动、查看运行状态、重启,方便快捷 https://grafana.com/docs/grafana/l 阅读全文
posted @ 2024-07-18 10:56 Mr42Sir 阅读(55) 评论(0) 推荐(0)
摘要: 该运行时API的作用 作为在访问共享内存时作为线程块内的同步机制出现,保证同一线程块内所有线程到程序运行到这个运行时API调用时都能运行完毕(注意,该API不能同步不同线程块内的线程),例如下列Cuda静态共享内存使用代码示例程序中的第23行所示: /************************ 阅读全文
posted @ 2024-07-14 15:26 Mr42Sir 阅读(71) 评论(0) 推荐(0)
摘要: 重点 计算线程唯一标识,并确保没有线程越界的技巧: 以下列英伟达官方的Cuda程序示例为例子 /* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source an 阅读全文
posted @ 2024-07-13 12:14 Mr42Sir 阅读(56) 评论(0) 推荐(0)
摘要: 1.定义 在多线程编程中,当两个或多个线程并发访问同一个内存位置时,如果没有适当的同步机制(如锁或原子操作),并且至少有一个访问是写操作,就会发生数据竞争。这可能会导致不可预测的行为、崩溃或错误的结果。 阅读全文
posted @ 2024-06-18 09:25 Mr42Sir 阅读(52) 评论(0) 推荐(0)
摘要: 原来 bool Myclass::connect() { std::function<void()>f = std::bind(&Myclass::loopCheckStatus, this); new std::thread(f); return true; } void Myclass::loo 阅读全文
posted @ 2024-06-09 22:16 Mr42Sir 阅读(47) 评论(0) 推荐(0)
摘要: Ray core https://mp.weixin.qq.com/s/8yJ9CO61ZraAvfw8X0Rz-g 阅读全文
posted @ 2024-05-10 10:04 Mr42Sir 阅读(15) 评论(0) 推荐(0)
摘要: 直接使用以下脚本: import psycopg2 import duckdb import pandas as pd # Connect to PostgreSQL conn_postgres = psycopg2.connect( dbname="pg_test_db", user="your_ 阅读全文
posted @ 2024-05-08 15:21 Mr42Sir 阅读(181) 评论(0) 推荐(0)
摘要: zipline https://zipline.ml4trading.io/install.html TA-lib 如这篇文章所言 https://stackoverflow.com/a/75311818/16205177 阅读全文
posted @ 2024-05-07 14:01 Mr42Sir 阅读(41) 评论(0) 推荐(0)
摘要: 背景 阅读全文
posted @ 2024-04-22 10:42 Mr42Sir 阅读(35) 评论(0) 推荐(0)
摘要: 原始报错 ERROR: database "research db" is being accessed by other usersDetail: There are 20 other sessions using the database. 解决办法 You can use pg_termina 阅读全文
posted @ 2024-03-27 10:20 Mr42Sir 阅读(43) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页