MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / check_equal_gpuid

Function check_equal_gpuid

detrsmpl/core/renderer/mpr_renderer/cuda/rasterizer.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void check_equal_gpuid(const torch::Tensor& a, const torch::Tensor& b) {
37 TORCH_CHECK(
38 a.device().index() == b.device().index(),
39 "expected equal gpu id, got ", a.device().index(), " != ", b.device().index()
40 );
41}
42
43std::vector<torch::Tensor> estimate_normals(
44 const torch::Tensor& vertices_ndc,

Callers

nothing calls this directly

Calls 1

deviceMethod · 0.80

Tested by

no test coverage detected