NVIDIA186 open jobs

System Software Engineer

Software engineeringPosted 11 days agofrom NVIDIA's own hiring page

Work type
On-siteBengaluru, Pune
Experience
3+ years
Pay
Not listedUsually ₹7.7 LPASoftware engineering, median at 1–4 years, in India (Payscale)
Posted
11 days ago
Before you apply: make your resume fit this job

From the ad

  • Degree or equivalent experienceBTech or MTech degree in one of following areas: Electrical Engineering, Computer Engineering, Computer Science or equivalent experience

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on C and C++

About the job

We are seeking software engineers to work on next-generation graphics and computing products. Our charter is to build the most stressful set of applications a GPU or high performance computing server would see in its life cycle. The best candidates will have strong C/C++ programming skills, a solid foundation of systems software with emphasis on OS fundamentals, and a deep understanding of current generation PC/hardware architecture. Excellent communication skills and a dedication to meticulous engineering practices are a requirement. As a system software engineer, you will extensively use your knowledge of operating systems, algorithms, and computer architecture to provide robust and efficient solutions to validate and test next generation processors.


What you'll be doing:

  • Working closely with architecture, hardware and driver teams through the product development lifecycle of computing and graphics processors, as well as compute products.
  • Responsible for crafting software tools and infrastructure required for new chip development, validation, and productization.
  • Assess new hardware features and architect manufacturing diagnostic solutions using pre-beta driver extensions.
  • This job will require an understanding of our hardware and software architectures.

What we need to see:

  • BTech or MTech degree in one of following areas: Electrical Engineering, Computer Engineering, Computer Science or equivalent experience.
  • 3+ years' experience in a related hardware/software position.
  • Strong C/C++ programming skills.
  • Familiarity with PC architecture, and ability to work close to the hardware.
  • Previous experience of working on a large system software code base is preferable.
  • Very strong problem solving and debugging skills.
  • Ability to self-manage, show leadership, and have good interpersonal skills.

With competitive salaries and a generous benefits package, NVIDIA is widely considered to be one of the technology world’s most desirable employers. We have some of the most forward-thinking and talented people in the world working for us and, due to unprecedented growth, our elite engineering teams are rapidly growing. If you're a creative and autonomous engineer with a real passion for technology, we want to hear from you.

Interested?System Software Engineer at NVIDIA

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on C and C++

Interview questions for this job

For the skills the ad mentions: C and C++.

41 questions
  • How do function pointers in C work?C

    Function pointers in C

    Let's start with a basic function which we will be pointing to:

    int addInt(int n, int m) {
        return n+m;
    }
    

    First thing, let's define a pointer to a function which receives 2 ints and returns an int:

    int (*functionPtr)(int,int);
    

    Now we can safely point to our function:

    functionPtr = &addInt;
    

    Now that we have a pointer to the function, let's use it:

    int sum = (*functionPtr)(2, 3); // sum == 5
    

    Passing the pointer to another function is basically the same:

    int add2to3(int (*functionPtr)(int, int)) {
        return (*functionPtr)(2, 3);
    }
    

    We can use function pointers in return values as well (try to keep up, it gets messy):

    // this is a function called functionFactory which receives parameter n
    // and returns a pointer to another function which receives two ints
    // and it returns another int
    int (*functionFactory(int n))(int, int) {
        printf("Got parameter %d", n);
        int (*functionPtr)(int,int) = &addInt;
        return functionPtr;
    }
    

    But it's much nicer to use a typedef:

    typedef int (*myFuncDef)(int, int);
    // note that the typedef name is indeed myFuncDef
    myFuncDef functionFactory(int n) {
        printf("Got parameter %d", n);
        myFuncDef functionPtr = &addInt;
        return functionPtr;
    }
    

    From Stack Overflow: asked by Yuval Adam, answered by Yuval Adam (CC BY-SA 3.0)

  • What is the copy-and-swap idiom?C++

    Overview

    Why do we need the copy-and-swap idiom?

    Any class that manages a resource (a wrapper, like a smart pointer) needs to implement The Big Three. While the goals and implementation of the copy-constructor and destructor are straightforward, the copy-assignment operator is arguably the most nuanced and difficult. How should it be done? What pitfalls need to be avoided?

    The copy-and-swap idiom is the solution, and elegantly assists the assignment operator in achieving two things: avoiding code duplication, and providing a strong exception guarantee.

    How does it work?

    Conceptually, it works by using the copy-constructor's functionality to create a local copy of the data, then takes the copied data with a swap function, swapping the old data with the new data. The temporary copy then destructs, taking the old data with it. We are left with a copy of the new data.

    In order to use the copy-and-swap idiom, we need three things: a working copy-constructor, a working destructor (both are the basis of any wrapper, so should be complete anyway), and a swap function.

    A swap function is a non-throwing function that swaps two objects of a class, member for member. We might be tempted to use std::swap instead of providing our own, but this would be impossible; std::swap uses the copy-constructor and copy-assignment operator within its implementation, and we'd ultimately be trying to define the assignment operator in terms of itself!

    (Not only that, but unqualified calls to swap will use our custom swap operator, skipping over the unnecessary construction and destruction of our class that std::swap would entail.)

    An in-depth explanation

    The goal

    Let's consider a concrete case. We want to manage, in an otherwise useless class, a dynamic array. We start with a working constructor, copy-constructor, and destructor:

    #include <algorithm> // std::copy
    #include <cstddef> // std::size_t
    class dumb_array
    {
    public:
        // (default) constructor
        dumb_array(std::size_t size = 0)
            : mSize(size),
              mArray(mSize ? new int[mSize]() : nullptr)
        {
        }
        // copy-constructor
        dumb_array(const dumb_array& other)
            : mSize(other.mSize),
              mArray(mSize ? new int[mSize] : nullptr)
        {
            // note that this is non-throwing, because of the data
            // types being used; more attention to detail with regards
            // to exceptions must be given in a more general case, however
            std::copy(other.mArray, other.mArray + mSize, mArray);
        }
        // destructor
        ~dumb_array()
        {
            delete [] mArray;
        }
    private:
        std::size_t mSize;
        int* mArray;
    };
    

    This class almost manages the array successfully, but it needs operator= to work correctly.

    A failed solution

    Here's how a naive implementation might look:

    // the hard part
    dumb_array& operator=(const dumb_array& other)
    {
        if (this != &other) // (1)
        {
            // get rid of the old data...
            delete [] mArray; // (2)
            mArray = nullptr; // (2) *(see footnote for rationale)
            // ...and put in the new
            mSize = other.mSize; // (3)
            mArray = mSize ? new int[mSize] : nullptr; // (3)
            std::copy(other.mArray, other.mArray + mSize, mArray); // (3)
        }
        return *this;
    }
    

    And we say we're finished; this now manages an array, without leaks. However, it suffers from three problems, marked sequentially in the code as (n).

    Read the rest at the sourceFrom Stack Overflow: asked by GManNickG, answered by GManNickG (CC BY-SA 4.0)

  • Should I cast the result of malloc (in C)?C

    No; you shouldn’t cast the result, since:

    • It is unnecessary, as void * is automatically and safely promoted to any other pointer type in this case.
    • It adds clutter to the code, casts are not very easy to read (especially if the pointer type is long).
    • It makes you repeat yourself, which is generally bad.
    • It can hide an error if you forgot to include <stdlib.h>. This can cause crashes (or, worse, not cause a crash until way later in some totally different part of the code). Consider what happens if pointers and integers are differently sized; then you're hiding a warning by casting and might lose bits of your returned address. Note: as of C99 implicit functions are gone from C, and this point is no longer relevant since there's no automatic assumption that undeclared functions return int.

    As a clarification, note that I said “you shouldn’t cast”, not “you don't need to cast”. In my opinion, it's a blunder to include the cast, even if you got it right. There are simply no benefits to doing it, but a bunch of potential risks, and including the cast indicates that you don't know about the risks.

    Also note, as commentators point out, that the above talks about straight C, not C++. I very firmly believe in C and C++ as separate languages.

    To add further, your code needlessly repeats the type information (int) which can cause errors. It's better to de-reference the pointer being used to store the return value, to "lock" the two together:

    int *sieve = malloc(length * sizeof *sieve);
    

    Some may say: “Well, previously the type was repeated, and now the variable name is repeated; isn’t this just as repetitive as before? How is that any better?” The difference is that if you one day change the type of the variable and forget to change the type under the sizeof to match, you will silently get an allocation of the wrong size and no warning about it; but if you change the name of the variable, but forget to change the name under sizeof to match, it is more probable that the old name no longer resolves to anything, so your code will stop compiling, prompting you to fix the mistake.

    This also moves the length to the front for increased visibility, and drops the redundant parentheses with sizeof; they are only needed when the argument is a type name. Many people seem to not know (or ignore) this, which makes their code more verbose. Remember: sizeof is not a function! :)

    While moving length to the front may increase visibility in some rare cases, one should also pay attention that in the general case, it should be better to write the expression as:

    int *sieve = malloc(sizeof *sieve * length);
    

    Since keeping the sizeof first, in this case, ensures multiplication is done with at least size_t math.

    Compare: malloc(sizeof *sieve * length * width) vs. malloc(length * width * sizeof *sieve) the second may overflow the length * width when width and length are smaller types than size_t.

    From Stack Overflow: asked by Patrick McDonald, answered by unwind (CC BY-SA 4.0)

  • What is the difference between #include <filename> and #include "filename"?C++

    What differs is the locations in which the preprocessor searches for the file to be included.

    • #include <filename>   The preprocessor searches in an implementation-defined manner, normally in directories pre-designated by the compiler/IDE. This method is normally used to include header files for the C standard library and other header files associated with the target platform.

    • #include "filename"   The preprocessor also searches in an implementation-defined manner, but one that is normally used to include programmer-defined header files and typically includes same directory as the file containing the directive (unless an absolute path is given).

    For GCC, a more complete description is available in the GCC documentation on search paths.

    From Stack Overflow: asked by quest49, answered by quest49 (CC BY-SA 4.0)

  • Why does the C preprocessor interpret the word "linux" as the constant "1"?C

    In the Old Days (pre-ANSI), predefining symbols such as unix and vax was a way to allow code to detect at compile time what system it was being compiled for. There was no official language standard back then (beyond the reference material at the back of the first edition of K&R, 1978), and C code of any complexity was typically a complex maze of #ifdefs to allow for differences between systems. These macro definitions were generally set by the compiler itself, not defined in a library header file. Since there were no real rules about which identifiers could be used by the implementation and which were reserved for programmers, compiler writers felt free to use simple names like unix and assumed that programmers would simply avoid using those names for their own purposes.

    The 1989 ANSI C standard introduced rules restricting what symbols an implementation could legally predefine. A macro predefined by the compiler could only have a name starting with two underscores, or with an underscore followed by an uppercase letter, leaving programmers free to use identifiers not matching that pattern and not used in the standard library.

    As a result, any compiler that predefines unix or linux is non-conforming, since it will fail to compile perfectly legal code that uses something like int linux = 5;.

    As it happens, gcc is non-conforming by default -- but it can be made to conform (reasonably well) with the right command-line options:

    gcc -std=c90 -pedantic ... # or -std=c89 or -ansi
    gcc -std=c99 -pedantic
    gcc -std=c11 -pedantic
    

    By the time you read this, gcc will support newer editions of the C standard. See the gcc manual for more details.

    gcc might phase out these definitions (unix, linux, et al) in future releases, so you shouldn't write code that depends on them. If your program needs to know whether it's being compiled for a Linux target or not it can check whether __linux__ is defined (assuming you're using gcc or a compiler that's compatible with it). See the GNU C preprocessor manual for more information.

    A largely irrelevant aside: the "Best One Liner" winner of the 1987 International Obfuscated C Code Contest, by David Korn (yes, the author of the Korn Shell) took advantage of the predefined unix macro:

    main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
    

    It prints "unix", but for reasons that have absolutely nothing to do with the spelling of the macro name.

    I don't want to post any spoilers here, and I encourage anyone reading this to try to understand that code on their own first. But if you really want to give up, I've posted an explanation here: https://gist.github.com/Keith-S-Thompson/6920347

    From Stack Overflow: asked by ahmedaly50, answered by Keith Thompson (CC BY-SA 4.0)

  • What are your hobbies and interests?Behavioural

    Employers will want to get to know you and may ask things like:

    • what do you do in your spare time?
    • what are your hobbies and interests?

    Show what kind of personal qualities, interests and skills you have. For example, you could talk about:

    • cooking - to show you're organised and can follow instructions
    • travel - to show you're adventurous and flexible
    • team sports - to show you're a team player with good communication
    • music - to show you're creative

    If the job requires certain skills, you should demonstrate these in your examples.

    Example

    If it's a graphic designer role, you could talk about taking a desktop publishing course.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Software engineer jobs in Bengaluru (649), Jobs in Bengaluru (10,735) and Software engineer jobs in India (1,457)