course icon indicating copy to clipboard operation
course copied to clipboard

高性能并行编程与优化 - 课件

Results 21 course issues
Sort by recently updated
recently updated
newest added

# 实验环境: ```shell # ubuntu20.04 # linux 内核: 5.13.0-48-generic # gcc 11.0 ``` # Q1 :10/03/01.cpp 编译出错 ```shell /sparse_data_struct/00.cpp: In instantiation of ‘static void RootGrid::_write(Node&, int, int, T) [with Node...

intel出的多线程框架在arm处理器M1 mac上支持运行吗?

- 首先是在WSL上跑的,Vemmem把32g内存全部占满勒,就卡住了。 - 接下来换了台换了个小服务器跑,也是cpu和内存近乎跑满,然后这个程序直接被kill掉了。 呜呜呜,太菜勒,完全不知道为啥跑不通。

https://github.com/parallel101/course/blob/c8787cf47d60ec7a72ce6ccfc9ba6202e890c8bd/02/19/main.cpp#L32-L35 课件这里的写法是复杂又容易出错的,其实我们可以采取下面这样更安全的方式: ```cpp //C* raw_p = p.get(); // no need func(std::make_unique(*p)); // deep copy p->do_something(); // OK, run normally ``` 虽然 `std::unique_ptr` 删除了 copy constructor 和 copy assignment operator ,但其实我们可以借助解引用操作变通地对...

三维数组vector初始化大小应为n * n * n std::vector a(n * n); ---------》 std::vector a(n * n *n);

我的代码中,在vs2022中,凡是使用CudaAllocator 的地方都会编译出错:“no instance of constructor "CudaAllocator::CudaAllocator [with T=int]" matches the argument list main” ,不知道是为什么? ”

环境 VS2022 cuda12.2 代码为08课04节 https://github.com/parallel101/course/blob/2d30da61b442008c003f69225e6feca20a4ca7df/08/04_sugar/01/main.cu#L7 报错信息 ``` [build] MSBuild version 17.4.0+18d5aef85 for .NET Framework [build] Compiling CUDA source file ..\src\allocator.cu... [build] [build] C:\Dev\mgxpbd\build>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\bin\nvcc.exe" --use-local-env -ccbin "C:\Program...

在08课程04_sugar\01下面生成 visual studio 2022 项目之后,运行报错如下: “no suitable user-defined conversion from "CudaAllocator" to "CudaAllocator" exists”,请问老师如何修改?

老师您好,我现在有一个周期性的gpu任务,但是我用nvidia-smi工具发现,在执行完一次任务等待第二次执行该任务的间隔内,gpu功耗并没有降到静态功耗,这是什么原因,该如何解决呢?我的gpu静态功耗是29W,执行任务时功耗会升至120W,执行完功耗就保持87W左右,再执行任务又升至120W。