NVIDIA / NVIDIA/cuda-samples

texture not a template?

Open
#212 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
9.6k
Forks
2.4k
Avg merge
53m
Merged PRs (30d)
1

Description

Why, in cuda samples, projects with "texture" object, tell me errors with that: " texture is not a template "? for an example, in project simpleD3D10RenderTarget's "simpleD3D10RenderTarget_kernel.cu", and with other errors, like that: "identifier 'threadIdx' is undefined" ?
I am using Visual Studio 2022 under windows 10, with cuda sdk 12.1
Many thanks in advanced for you replies.

ss

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cuda samples/projects/simpleD3D10RenderTarget/simpleD3D10RenderTarget_kernel.cu and reproduce the reported diagnostics in Visual Studio 2022 with CUDA 12.1. Compare the texture is not a template and threadIdx errors with the sample's compilation setup; done means the cause is identified and the sample builds without those errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.