How to use textures and arrays in CUDA?

Let’s learn how to use textures and arrays in CUDA. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

How to use arrays of Textures in CUDA

I was trying to use an array of textures in CUDA but I'm getting an "invalid texture reference" error. Anyone has any idea how to implement array of textures? #include<iostream> #include<cstdio> #include<cstdlib> #define MAX_TEXTURE 134217728 #define MAX_LENGTH 268435456 using namespace std; texture<char, 1, cudaReadModeElementType> texref[2]; int main(){ // host variable char *text; // device variable char *dev_a; text = (char*)malloc(MAX_LENGTH*sizeof...

Answer:

This is not possible. If available to you (Kepler or Maxwell gpu and cuda 5.0 or later), you should...

Read more

Thiago Alexandre at Stack Overflow Mark as irrelevant Undo

Other solutions

Could my computer be bottle necked?

I've been trying to get the best performance out of World of Warcraft, while at the same time, getting the best performance. I can't seem to figure out why my FPS fluctuates so badly while flying through areas such as Orgrimmar and even during 25-man...

Answer:

The lower FPS in crowded area's is common, same for raids. Check: Graphics card isn't overheating with...

Read more

Aaron at Yahoo! Answers Mark as irrelevant Undo

Where do we use arrays, functions and classes in video games? (Python)

I am using python + pygame for game development. I am still learning the basics. the first question I always ask (because I am impatient with programming) Where do you use this concept in games? :P I have read about arrays, functions and classes. Where...

Answer:

Literally everywhere. Arrays, classes, and functions are fundamental to object oriented programming...

Read more

Benjamin Pious at Quora Mark as irrelevant Undo

I don't have the 'cool textures' file on UDK and i can't seem to put textures down it seems without it all the tutorials use it what do I do?

For the record they all said Unreal Development Kit so its not that we're using different types of the program I just don't seem to have it, it seems and I don't know why

Answer:

You don't seem have what the textures? you assign the texture in you're 3d program then import them...

Read more

IUDNVE6QERTSX4JWA5F4O2NVTM at Yahoo! Answers Mark as irrelevant Undo

What textures from around my house could I use in an art project?

For 2D Art at school we have to use nothing but textures in a piece we're making. so far i have sandpaper, crumbled up foil, and styrofoam...what else could i use?

Answer:

PASTA NOODLES,,it comes in all shapes and sizes. u can paint it too!

Read more

NOZLHRIPVCS2ZKYGRK3AXQ3GSY at Yahoo! Answers Mark as irrelevant Undo

Why use CUDA in image processing?

CUDA as it is can offload processing of image processing steps to the GPU. While this can be a considerable boost in performance in terms of processing time, the big issue is ~ is it worth it? CPU processing of image processing apps can certainly run...

Answer:

The usage of GPGPU isn't just for image processing. GPGPU is a great candidate for anything that implements...

Read more

Jae_im B at Yahoo! Answers Mark as irrelevant Undo

What engine does the 1971 Pymouth HEMI Cuda use?

What 440 engine does the 1971 Pymouth HEMI Cuda use?

Answer:

426 HEMI, the 440 is a totally different engine that isn't a HEMI.

Read more

2ORBEXTG2UQCVNXYFROPRLF67E at Yahoo! Answers Mark as irrelevant Undo

How do I make the Adobe Media Encoder for CS5 use CUDA?

When I use Premiere, CUDA through the Mercury Engine seems to work just fine during previews, but when I render my project using the Media Encoder, my CPU-usage rises to 100%. Anyone know how I solve this?

Answer:

The GPU acceleration built into Adobe Premiere Pro (CS5 and later) is meant to enhance the speed of...

Read more

Kyle Fordrung at Quora Mark as irrelevant Undo

C ++ how to use parallel arrays in programming?

The data file contains student scores for 3 exams. How do you create a function to read these values from a data file and record the highest value in each exam?. I realize you'd have to set the first value to the highest and keep comparing subsequent...

Answer:

If by 'parallel arrays' you mean 'multidimensional arrays', then something like this might work. Disclaimer...

Read more

Joe B at Yahoo! Answers Mark as irrelevant Undo

What materials should i use to make good textures?

I need to now some good materials that i can use for my art book that make good textures that are stimulating both visually and tactilely. More visually for example stuff like pva glue and newspaper and sand, they have to portray different emotions like...

Answer:

Modeling paste, window caulking (they will make stiff peaks when formed). You can glue down things like...

Read more

CrazyBub... at Yahoo! Answers Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.