NVIDIA186 open jobs

System Software Engineer, GPU Development Tools

Systems, C++ and performancePosted over 2 months agofrom NVIDIA's own hiring page

Work type
HybridBengaluru
Experience
3+ years
Pay
Not listed
Posted
Over 2 months agoOpen 4 months
Before you apply: make your resume fit this job

From the ad

  • Degree or equivalent experienceBachelors or masters in computer science / computer engineering 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 Software engineering practice

About the job

NVIDIA has continuously reinvented itself. Our invention of the GPU sparked the growth of the PC gaming market, redefined modern computer graphics, and revolutionized parallel computing. Today, research in artificial intelligence is booming worldwide, which calls for highly scalable and massively parallel computation horsepower that NVIDIA GPUs excel.

We are now looking for a GPU Development Tools System Software Engineer. A key part of NVIDIA's strength is our sophisticated development tools and simulation environments that enable our incredible pace of delivering new technology to the market. We are looking for forward-thinking, hard-working, and creative people to join a dynamic software development team with high production-quality standards. Our work includes designing and developing frameworks for creating GPU workloads that enable functional and perf verification of GPU. NVIDIA is continuously pushing the state of the art in chip development software and infrastructure to enable the next generation of chips. In this position, you will develop the core infrastructure needed to generate stimulus for modeling, analysis, and debugging of upcoming general-purpose graphics and computing chips. Our infrastructure is critical to enable GPU development and verification throughout the chip lifecycle and is used across many diverse groups of engineers including but not limited to chip architects, driver developers, and verification engineers.

What you will be doing:

  • As a member of the team, you will play a critical role in all stages of GPU development

  • Design and architect features in compute and graphics stimulus development framework similar to OpenGL and CUDA

  • Coordinate with GPU architects to craft and implement infrastructure used for functional and performance verification for the upcoming architecture

  • Design and develop GPU stimulus analysis tools such as debuggers & disassemblers

  • Empower GPU architects to understand application performance today and model industry-leading performance for tomorrow

  • Work closely with HW & SW teams to enable speed-of-light development of GPU software ecosystem

  • In this role, you will dramatically improve the daily workflows of the world's top chip modelers and designers to help produce the world’s next greatest generation of GPUs

What we need to see:

  • Bachelors or masters in computer science / computer engineering or equivalent experience

  • 3+ years of overall experience with large portion of that working on C++ based projects

  • Strong C++ programming capability required (experience with boost or C++11/14 a plus)

  • Knowledge of object-oriented design patterns

  • Good understanding of system software and Operating Systems

  • Strong expertise in design and development of complex massively parallel algorithms

  • Experience with chip and/or system simulation a huge plus

  • Strong scripting skills desired

  • Graphics or CUDA knowledge a plus

  • Experience with OpenGL, Vulkan, Direct3D, CUDA APIs a plus

  • Excellent interpersonal skills

NVIDIA is committed to fostering a diverse work environment and proud to be an equal opportunity employer. As we highly value diversity in our current and future employees, we do not discriminate (including in our hiring and promotion practices) on the basis of race, religion, color, national origin, gender, gender expression, sexual orientation, age, marital status, veteran status, disability status or any other characteristic protected by law.

#LI-Hybrid

Interested?System Software Engineer, GPU Development Tools 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 Software engineering practice

Interview questions for this job

For the skills the ad mentions: C++. And what Systems, C++ and performance interviews usually cover: Software engineering practice.

126 questions
  • When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?C++

    static_cast

    static_cast is the first cast you should attempt to use. It does things like implicit conversions between types (such as int to float, or pointer to void*), and it can also call explicit conversion functions (or implicit ones). In many cases, explicitly stating static_cast isn't necessary, but it's important to note that the T(something) syntax is equivalent to (T)something and should be avoided (more on that later). A T(something, something_else) is safe, however, and guaranteed to call the constructor.

    static_cast can also cast through inheritance hierarchies. It is unnecessary when casting upwards (towards a base class), but when casting downwards it can be used as long as it doesn't cast through virtual inheritance. It does not do checking, however, and it is undefined behavior to static_cast down a hierarchy to a type that isn't actually the type of the object.

    const_cast

    const_cast can be used to remove or add const to a variable; no other C++ cast is capable of removing it (not even reinterpret_cast). It is important to note that modifying a formerly const value is only undefined if the original variable is const; if you use it to take the const off a reference to something that wasn't declared with const, it is safe. This can be useful when overloading member functions based on const, for instance. It can also be used to add const to an object, such as to call a member function overload.

    const_cast also works similarly on volatile, though that's less common.

    dynamic_cast

    dynamic_cast is exclusively used for handling polymorphism. You can cast a pointer or reference to any polymorphic type to any other class type (a polymorphic type has at least one virtual function, declared or inherited). You can use it for more than just casting downwards – you can cast sideways or even up another chain. The dynamic_cast will seek out the desired object and return it if possible. If it can't, it will return nullptr in the case of a pointer, or throw std::bad_cast in the case of a reference.

    dynamic_cast has some limitations, though. It doesn't work if there are multiple objects of the same type in the inheritance hierarchy (the so-called 'dreaded diamond') and you aren't using virtual inheritance. It also can only go through public inheritance - it will always fail to travel through protected or private inheritance. This is rarely an issue, however, as such forms of inheritance are rare.

    reinterpret_cast

    reinterpret_cast is the most dangerous cast, and should be used very sparingly. It turns one type directly into another — such as casting the value from one pointer to another, or storing a pointer in an int, or all sorts of other nasty things. Largely, the only guarantee you get with reinterpret_cast is that normally if you cast the result back to the original type, you will get the exact same value (but not if the intermediate type is smaller than the original type). There are a number of conversions that reinterpret_cast cannot do, too. It's often abused for particularly weird conversions and bit manipulations, like turning a raw data stream into actual data, or storing data in the low bits of a pointer to aligned data. For those cases, see std::bit_cast.

    C-Style Cast and Function-Style Cast

    C-style cast and function-style cast are casts using (type)object or type(object), respectively, and are functionally equivalent. They are defined as the first of the following which succeeds:

    • const_cast
    • static_cast (though ignoring access restrictions)
    • static_cast (see above), then const_cast
    • reinterpret_cast
    • reinterpret_cast, then const_cast

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

  • When would you use the Builder Pattern?Software engineering practice

    Below are some reasons arguing for the use of the pattern and example code in Java, but it is an implementation of the Builder Pattern covered by the Gang of Four in Design Patterns. The reasons you would use it in Java are also applicable to other programming languages as well.

    As Joshua Bloch states in Effective Java, 2nd Edition:

    The builder pattern is a good choice when designing classes whose constructors or static factories would have more than a handful of parameters.

    We've all at some point encountered a class with a list of constructors where each addition adds a new option parameter:

    Pizza(int size) { ... }        
    Pizza(int size, boolean cheese) { ... }    
    Pizza(int size, boolean cheese, boolean pepperoni) { ... }    
    Pizza(int size, boolean cheese, boolean pepperoni, boolean bacon) { ... }
    

    This is called the Telescoping Constructor Pattern. The problem with this pattern is that once constructors are 4 or 5 parameters long it becomes difficult to remember the required order of the parameters as well as what particular constructor you might want in a given situation.

    One alternative you have to the Telescoping Constructor Pattern is the JavaBean Pattern where you call a constructor with the mandatory parameters and then call any optional setters after:

    Pizza pizza = new Pizza(12);
    pizza.setCheese(true);
    pizza.setPepperoni(true);
    pizza.setBacon(true);
    

    The problem here is that because the object is created over several calls it may be in an inconsistent state partway through its construction. This also requires a lot of extra effort to ensure thread safety.

    The better alternative is to use the Builder Pattern.

    public class Pizza {
      private int size;
      private boolean cheese;
      private boolean pepperoni;
      private boolean bacon;
      public static class Builder {
        //required
        private final int size;
        //optional
        private boolean cheese = false;
        private boolean pepperoni = false;
        private boolean bacon = false;
        public Builder(int size) {
          this.size = size;
        }
        public Builder cheese(boolean value) {
          cheese = value;
          return this;
        }
        public Builder pepperoni(boolean value) {
          pepperoni = value;
          return this;
        }
        public Builder bacon(boolean value) {
          bacon = value;
          return this;
        }
        public Pizza build() {
          return new Pizza(this);
        }
      }
      private Pizza(Builder builder) {
        size = builder.size;
        cheese = builder.cheese;
        pepperoni = builder.pepperoni;
        bacon = builder.bacon;
      }
    }
    

    Note that Pizza is immutable and that parameter values are all in a single location. Because the Builder's setter methods return the Builder object they are able to be chained.

    Pizza pizza = new Pizza.Builder(12)
                           .cheese(true)
                           .pepperoni(true)
                           .bacon(true)
                           .build();
    

    This results in code that is easy to write and very easy to read and understand. In this example, the build method could be modified to check parameters after they have been copied from the builder to the Pizza object and throw an IllegalStateException if an invalid parameter value has been supplied. This pattern is flexible and it is easy to add more parameters to it in the future. It is really only useful if you are going to have more than 4 or 5 parameters for a constructor. That said, it might be worthwhile in the first place if you suspect you may be adding more parameters in the future.

    I have borrowed heavily on this topic from the book Effective Java, 2nd Edition by Joshua Bloch. To learn more about this pattern and other effective Java practices I highly recommend it.

    From Stack Overflow: asked by Charles Graham, answered by user2628 (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)

  • Does functional programming replace GoF design patterns?Software engineering practice

    The blog post you quoted overstates its claim a bit. FP doesn't eliminate the need for design patterns. The term "design patterns" just isn't widely used to describe the same thing in FP languages. But they exist. Functional languages have plenty of best practice rules of the form "when you encounter problem X, use code that looks like Y", which is basically what a design pattern is.

    However, it's correct that most OOP-specific design patterns are pretty much irrelevant in functional languages.

    I don't think it should be particularly controversial to say that design patterns in general only exist to patch up shortcomings in the language. And if another language can solve the same problem trivially, that other language won't have need of a design pattern for it. Users of that language may not even be aware that the problem exists, because, well, it's not a problem in that language.

    Here is what the Gang of Four has to say about this issue:

    The choice of programming language is important because it influences one's point of view. Our patterns assume Smalltalk/C++-level language features, and that choice determines what can and cannot be implemented easily. If we assumed procedural languages, we might have included design patterns called "Inheritance", "Encapsulation," and "Polymorphism". Similarly, some of our patterns are supported directly by the less common object-oriented languages. CLOS has multi-methods, for example, which lessen the need for a pattern such as Visitor. In fact, there are enough differences between Smalltalk and C++ to mean that some patterns can be expressed more easily in one language than the other. (See Iterator for example.)

    (The above is a quote from the Introduction to the Design Patterns book, page 4, paragraph 3)

    The main features of functional programming include functions as first-class values, currying, immutable values, etc. It doesn't seem obvious to me that OO design patterns are approximating any of those features.

    What is the command pattern, if not an approximation of first-class functions? :) In an FP language, you'd simply pass a function as the argument to another function. In an OOP language, you have to wrap up the function in a class, which you can instantiate and then pass that object to the other function. The effect is the same, but in OOP it's called a design pattern, and it takes a whole lot more code. And what is the abstract factory pattern, if not currying? Pass parameters to a function a bit at a time, to configure what kind of value it spits out when you finally call it.

    So yes, several GoF design patterns are rendered redundant in FP languages, because more powerful and easier to use alternatives exist.

    But of course there are still design patterns which are not solved by FP languages. What is the FP equivalent of a singleton? (Disregarding for a moment that singletons are generally a terrible pattern to use.)

    And it works both ways too. As I said, FP has its design patterns too; people just don't usually think of them as such.

    But you may have run across monads. What are they, if not a design pattern for "dealing with global state"? That's a problem that's so simple in OOP languages that no equivalent design pattern exists there.

    We don't need a design pattern for "increment a static variable", or "read from that socket", because it's just what you do.

    Saying a monad is a design pattern is as absurd as saying the Integers with their usual operations and zero element is a design pattern. No, a monad is a mathematical pattern, not a design pattern.

    In (pure) functional languages, side effects and mutable state are impossible, unless you work around it with the monad "design pattern", or any of the other methods for allowing the same thing.

    Additionally, in functional languages which support OOP (such as F# and OCaml), it seems obvious to me that programmers using these languages would use the same design patterns found available to every other OOP language. In fact, right now I use F# and OCaml everyday, and there are no striking differences between the patterns I use in these languages vs the patterns I use when I write in Java.

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

  • What are the basic rules and idioms for operator overloading?C++

    Common Operators to Overload

    Most of the work in overloading operators is boilerplate code. That is little wonder, since operators are merely syntactic sugar. Their actual work could be done by (and often is forwarded to) plain functions. But it is important that you get this boilerplate code right. If you fail, either your operator’s code won’t compile, your users’ code won’t compile, or your users’ code will behave surprisingly.

    Assignment Operator

    There's a lot to be said about assignment. However, most of it has already been said in GMan's famous Copy-And-Swap FAQ, so I'll skip most of it here, only listing the perfect assignment operator for reference:

    X& X::operator=(X rhs)
    {
      swap(rhs);
      return *this;
    }
    

    Stream Insertion and Extraction

    Disclaimer
    For overloading << and >> as bitwise shift operators, skip to the section Binary Arithmetic Operators.

    The bitwise shift operators << and >>, although still used in hardware interfacing for the bit-manipulation functions they inherit from C, have become more prevalent as overloaded stream input and output operators in most applications.

    The stream operators, among the most commonly overloaded operators, are binary infix operators for which the syntax does not specify any restriction on whether they should be members or non-members. However, their left operands are streams from the standard library, and you cannot add member functions to those1, so you need to implement these operators for your own types as non-member functions2. The canonical forms of the two are these:

    std::ostream& operator<<(std::ostream& os, const T& obj)
    {
      // Write obj to stream
      return os;
    }
    std::istream& operator>>(std::istream& is, T& obj)
    {
      // Read obj from stream
      if( /* no valid object of T found in stream */ )
        is.setstate(std::ios::failbit);
      return is;
    }
    

    When implementing operator>>, manually setting the stream’s state is only necessary when the reading itself succeeded, but the result is not what would be expected.

    1 Note that some of the << overloads of the standard library are implemented as member functions, and some as free functions. Only the locale-dependent functions are member functions, such as operator<<(long).

    2 According to the rules of thumb, the insertion/extraction operators should be member functions because they modify the left operand. However, we cannot follow the rules of thumb here.

    Function Call Operator

    The function call operator, used to create function objects, also known as functors, must be defined as a member function, so it always has the implicit this argument of member functions. Other than this, it can be overloaded to take any number of additional arguments, including zero.

    Here's an example of the syntax:

    struct X {
        // Overloaded call operator
        int operator()(const std::string& y) {
            return /* ... */;
        }
    };
    

    Usage:

    X f;
    int a = f("hello");
    

    Throughout the C++ standard library, function objects are always copied. Your own function objects should therefore be cheap to copy. If a function object absolutely needs to use data which is expensive to copy, it is better to store that data elsewhere and have the function object refer to it.

    Comparison Operators

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

  • Why do you think you're a good fit for our company?Behavioural

    Employers want to see that you have a genuine interest in working for them by asking questions like:

    • what do you know about our company?
    • why do you think you're a good fit for our company?
    • why do you want to work for us?

    To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.

    Show what you've learned about the company throughout the interview.

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

Similar jobs

More like this: C++ and systems jobs in Bengaluru (91), Jobs in Bengaluru (10,735) and C++ and systems jobs in India (161)