NVIDIA186 open jobs

CPU Verification Infrastructure Tools Architect

DevOps and SREPosted over 2 months agofrom NVIDIA's own hiring page

Work type
On-siteBengaluru, Hyderabad
Experience
5+ years
Pay
Not listedUsually ₹15 LPADevOps and SRE, median at 5–9 years, in India (Payscale)
Posted
Over 2 months agoOpen 5 months
Before you apply: make your resume fit this job

From the ad

  • Degree or equivalent experienceBS or MS in Computer Science or Electronics Engineering or equivalent experience with 5+ years of experience

Skills it mentions

Add your skills to see which ones you have.

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

About the job

We are looking for a Hardware and Software Developer. The role is multifaceted - SoCV testbench Infrastructure, Bare-metal boot, Silicon Bringup Tools and CPU/SOC/GPU test frameworks. It involves a detailed understanding of the nVidia CPU, GPU, SOC system and boot architectures. The tools and technologies are complex and involve code that coordinates many IPs in the overall SOC. A key part of NVIDIA's strength is our development tools and environments that enable our incredible pace of delivering new technology to the market. We are looking for a creative and hardworking engineer who is passionate about joining a dynamic & agile SoCV/Emulation Infrastructure and test-frameworks team.

What you will be doing:

  • The work includes building tools, infrastructure, and test frameworks used in RTL-simulations, c-simulations, Emulation, FPGA, and on Silicon.

  • You will understand Tegra system architecture, with a focus on all IPs in the SOC that are involved in boot and security features.

  • The tools that you build give Design and Verification teams the ability to access registers/memory/DMA engines and other features in their unit. The tools also enable test re-use across multiple platforms (RTL, models, Emulation, and Silicon). The gamut of tools is wide and you also develop features used for Silicon bring up (example: FUSE, ATE, Security, Flash/DMA, Board I2Cs, USB debug devices among others). We strive for the highest quality of test frameworks and tools that we deliver from this team.

  • You would assess and build C-model or RTL-simulation capability that allows us to simulate the features before Silicon arrival in a pre-silicon environment.

What we need to see:

  • BS or MS in Computer Science or Electronics Engineering or equivalent experience with 5+ years of experience

  • Strong programmer who is proficient with C, C++, Python.

  • Understanding of SOC and System Architecture.

  • Understanding of How the SOC Devices like DMA, interrupt-engines, CPU, boot-devices, MMU/IOMMU function.

  • Operating System and Device-Driver concepts and ability to write no-OS test frameworks - i.e tests that run directly on the bare-metal SOC.

  • A good programmer takes pride in building scalable and maintainable software.

  • Understanding Hardware and/or Software development life cycle.

Way to stand out from the crowd:

  • Previous experience handling Silicon Bringup and in enabling Emulation/FPGA related test frameworks.

  • Exposure to Testbench architectures (C++ testbenches, SV/UVM based testbenches).

  • Verilog and System Verilog coding skills are a plus.

With competitive salaries and a generous benefits package, we are widely considered to be one of the technology world’s most desirable employers. We have some of the most brilliant 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! We are an equal opportunity employer and value diversity at our company. We do not discriminate on the basis of race, religion, color, national origin, gender, sexual orientation, age, marital status, veteran status, or disability status.

Interested?CPU Verification Infrastructure Tools Architect 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++, C and Python

Interview questions for this job

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

193 questions
  • What is the '-->' operator in C/C++?C++

    --> is not an operator. It is in fact two separate operators, -- and >.

    The code in the condition decrements x, while returning x's original (not decremented) value, and then compares the original value with 0 using the > operator.

    To better understand, the statement could be written as follows:

    while( (x--) > 0 )
    

    From Stack Overflow: asked by GManNickG, answered by Charles Salvia (CC BY-SA 4.0)

  • What does the ??!??! operator do in C?C

    ??! is a trigraph that translates to |. So it says:

    !ErrorHasOccured() || HandleError();
    

    which, due to short circuiting, is equivalent to:

    if (ErrorHasOccured())
        HandleError();
    

    Guru of the Week (deals with C++ but relevant here), where I picked this up.

    Possible origin of trigraphs or as @DwB points out in the comments it's more likely due to EBCDIC being difficult (again). This discussion on the IBM developerworks board seems to support that theory.

    From ISO/IEC 9899:1999 §5.2.1.1, footnote 12 (h/t @Random832):

    The trigraph sequences enable the input of characters that are not defined in the Invariant Code Set as described in ISO/IEC 646, which is a subset of the seven-bit US ASCII code set.

    From Stack Overflow: asked by Peter Olson, answered by user786653 (CC BY-SA 4.0)

  • Is there an equivalent of C’s “?:” ternary operator?Python

    Yes, there is. The syntax is as follows:

    [on_true] if [expression] else [on_false]
    x, y = 50, 25
    small = x if x < y else y
    

    Before this syntax was introduced in Python 2.5, a common idiom was to use logical operators:

    [expression] and [on_true] or [on_false]
    

    However, this idiom is unsafe, as it can give wrong results when on_true has a false boolean value. Therefore, it is always better to use the ... if ... else ... form.

    From Python Frequently Asked Questions (PSF License Version 2)

  • Why are elementwise additions much faster in separate loops than in a combined loop?C++

    Upon further analysis of this, I believe this is (at least partially) caused by the data alignment of the four-pointers. This will cause some level of cache bank/way conflicts.

    If I've guessed correctly on how you are allocating your arrays, they are likely to be aligned to the page line.

    This means that all your accesses in each loop will fall on the same cache way. However, Intel processors have had 8-way L1 cache associativity for a while. But in reality, the performance isn't completely uniform. Accessing 4-ways is still slower than say 2-ways.

    EDIT: It does in fact look like you are allocating all the arrays separately. Usually when such large allocations are requested, the allocator will request fresh pages from the OS. Therefore, there is a high chance that large allocations will appear at the same offset from a page-boundary.

    Here's the test code:

    int main(){
        const int n = 100000;
    #ifdef ALLOCATE_SEPERATE
        double *a1 = (double*)malloc(n * sizeof(double));
        double *b1 = (double*)malloc(n * sizeof(double));
        double *c1 = (double*)malloc(n * sizeof(double));
        double *d1 = (double*)malloc(n * sizeof(double));
    #else
        double *a1 = (double*)malloc(n * sizeof(double) * 4);
        double *b1 = a1 + n;
        double *c1 = b1 + n;
        double *d1 = c1 + n;
    #endif
        //  Zero the data to prevent any chance of denormals.
        memset(a1,0,n * sizeof(double));
        memset(b1,0,n * sizeof(double));
        memset(c1,0,n * sizeof(double));
        memset(d1,0,n * sizeof(double));
        //  Print the addresses
        cout << a1 << endl;
        cout << b1 << endl;
        cout << c1 << endl;
        cout << d1 << endl;
        clock_t start = clock();
        int c = 0;
        while (c++ < 10000){
    #if ONE_LOOP
            for(int j=0;j<n;j++){
                a1[j] += b1[j];
                c1[j] += d1[j];
            }
    #else
            for(int j=0;j<n;j++){
                a1[j] += b1[j];
            }
            for(int j=0;j<n;j++){
                c1[j] += d1[j];
            }
    #endif
        }
        clock_t end = clock();
        cout << "seconds = " << (double)(end - start) / CLOCKS_PER_SEC << endl;
        system("pause");
        return 0;
    }
    

    Benchmark Results:

    EDIT: Results on an actual Core 2 architecture machine:

    2 x Intel Xeon X5482 Harpertown @ 3.2 GHz:

    #define ALLOCATE_SEPERATE
    #define ONE_LOOP
    00600020
    006D0020
    007A0020
    00870020
    seconds = 6.206
    #define ALLOCATE_SEPERATE
    //#define ONE_LOOP
    005E0020
    006B0020
    00780020
    00850020
    seconds = 2.116
    //#define ALLOCATE_SEPERATE
    #define ONE_LOOP
    00570020
    00633520
    006F6A20
    007B9F20
    seconds = 1.894
    //#define ALLOCATE_SEPERATE
    //#define ONE_LOOP
    008C0020
    00983520
    00A46A20
    00B09F20
    seconds = 1.993
    

    Observations:

    • 6.206 seconds with one loop and 2.116 seconds with two loops. This reproduces the OP's results exactly.

    • In the first two tests, the arrays are allocated separately. You'll notice that they all have the same alignment relative to the page.

    • In the second two tests, the arrays are packed together to break that alignment. Here you'll notice both loops are faster. Furthermore, the second (double) loop is now the slower one as you would normally expect.

    As @Stephen Cannon points out in the comments, there is a very likely possibility that this alignment causes false aliasing in the load/store units or the cache. I Googled around for this and found that Intel actually has a hardware counter for partial address aliasing stalls:

    http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/~amplifierxe/pmw_dp/events/partial_address_alias.html

    5 Regions - Explanations

    Region 1:

    This one is easy. The dataset is so small that the performance is dominated by overhead like looping and branching.

    Region 2:

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

  • What is the difference between ++i and i++?C
    • ++i will increment the value of i, and then return the incremented value.

         i = 1;
         j = ++i;
         (i is 2, j is 2)
      
    • i++ will increment the value of i, but return the original value that i held before being incremented.

         i = 1;
         j = i++;
         (i is 2, j is 1)
      

    For a for loop, either works. ++i seems more common, perhaps because that is what is used in K&R.

    In any case, follow the guideline "prefer ++i over i++" and you won't go wrong.

    There's a couple of comments regarding the efficiency of ++i and i++. In any non-student-project compiler, there will be no performance difference. You can verify this by looking at the generated code, which will be identical.

    The efficiency question is interesting... here's my attempt at an answer: Is there a performance difference between i++ and ++i in C?

    As On Freund's comment notes, it's different for a C++ object, since operator++() is a function and the compiler can't know to optimize away the creation of a temporary object to hold the intermediate value.

    From Stack Overflow: asked by The.Anti.9, answered by Mark Harrison (CC BY-SA 4.0)

  • Do you have any weaknesses?Behavioural

    You should be honest when answering questions on your weaknesses. Say how you're working to improve them.

    Example

    Question - "Do you have any weaknesses?"

    Answer - "I struggle with time management on projects. To make sure I stick to the time frame I'm creating a timetable of steps at the start of each project".

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

Similar jobs

More like this: DevOps and SRE jobs in Bengaluru (374), Jobs in Bengaluru (10,716) and DevOps and SRE jobs in India (887)