Giter VIP home page Giter VIP logo

Comments (7)

nitishsrivastava avatar nitishsrivastava commented on June 17, 2024

Try changing line 33 in cudamat/cudamat_conv_util.cuh

#define TEXTURE_SIZE_MAX                    (1<<29)

to

#define TEXTURE_SIZE_MAX                    0

from convnet.

regata avatar regata commented on June 17, 2024

Thanks Nitish!

Unfortunately it didn't work because the call to getTextureObject happens from convContrastNormCrossMap in cudamat_conv_others.cu:

    if (blocked) {
        if (checkCaseBounds) {
            cudaFuncSetCacheConfig(kFCNorm<4, 32, 4, true, true>, cudaFuncCachePreferL1);
            kFCNorm<4, 32, 4, true, true><<<blocks, threads, 0, stream>>>(getTextureObject(images), getTextureObject(meanDiffs), target->data_device,
                                                                imgSize, numFilters, numImages, sizeF, addScale, powScale, minDiv);
        } else {
            cudaFuncSetCacheConfig(kFCNorm<4, 32, 4, false, true>, cudaFuncCachePreferL1);
            kFCNorm<4, 32, 4, false, true><<<blocks, threads, 0, stream>>>(getTextureObject(images), getTextureObject(meanDiffs), target->data_device,
                                                                imgSize, numFilters, numImages, sizeF, addScale, powScale, minDiv);
        }
    } else {
        if (checkCaseBounds) {
            //!!!!!!!!!!!!!!!!!! HERE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
            cudaFuncSetCacheConfig(kFCNorm<4, 32, 4, true, false>, cudaFuncCachePreferL1);
            kFCNorm<4, 32, 4, true, false><<<blocks, threads, 0, stream>>>(getTextureObject(images), getTextureObject(meanDiffs), target->data_device,
                                                                imgSize, numFilters, numImages, sizeF, addScale, powScale, minDiv);
        } else {
            cudaFuncSetCacheConfig(kFCNorm<4, 32, 4, false, false>, cudaFuncCachePreferL1);
            kFCNorm<4, 32, 4, false, false><<<blocks, threads, 0, stream>>>(getTextureObject(images), getTextureObject(meanDiffs), target->data_device,
                                                                imgSize, numFilters, numImages, sizeF, addScale, powScale, minDiv);
        }
    }

What would be the easiest way to fix this?

from convnet.

nitishsrivastava avatar nitishsrivastava commented on June 17, 2024

Looks like it needs a kernel that doesn't use textures. I will write one and push it up soon.

from convnet.

neuralix avatar neuralix commented on June 17, 2024

to Nitish,

I also met the problem.
And now I regard it as a suspicious thing that,
the datatype of MNIST input(:*.h5) is 32bit floating and the range is [0, 1]
but for imagenet case (;be converted via jpeg2hdf5)
the one is 8 bit unsigned integer and the range is(;be looks) [0, 255].

could you review the thing?

from convnet.

nitishsrivastava avatar nitishsrivastava commented on June 17, 2024

@regata @neuralix
The latest commit adds a new kernel that doesn't use textures.

from convnet.

nitishsrivastava avatar nitishsrivastava commented on June 17, 2024

@neuralix The datatypes are fine. Everything gets converted to floats when it is moved to the GPU so it doesn't matter. The images are normalized and mean-centered later.

from convnet.

neuralix avatar neuralix commented on June 17, 2024

@nitishsrivastava I've met same problem at same point.
Now I doubt two points. The one is difference btn. my GPU(:Kepler) and your (recommended) one:Fermi. And the other is the issue of range in training data mentioned before. (I'll report the result.)

from convnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.