Connect with us

AI

Getting the GPU usage of NVIDIA cards with the Linux dstat tool

Avatar

Published

on

The dstat is an awesome little tool which allows you to get resource statistics for your Linux box. It has a modular architecture which allows you to develop additional plugins and it’s easy to use. Recently I was profiling a Deep Learning pipeline developed with Keras and Tensorflow and I needed detailed statistics about the CPU, Hard Disk and GPU usage. The first two are available out-of-the-box by dstat, nevertheless as far as I know there is no plugin for monitoring GPU usage for NVIDIA graphics cards.

Thankfully it is super easy to write a python plugin for dstat. I have already sent a pull-request on the official repo but since new versions are released relatively rarely here are some instructions on how to set up the dstat NVIDIA GPU usage plugin on your box.

Installation

The following commands are tested on Ubuntu 16.04 and they will help you install dstat, the Python NVIDIA Management Library and my dstat nvidia plugin:

sudo apt-get install dstat #install dstat
sudo pip install nvidia-ml-py #install Python NVIDIA Management Library
wget https://raw.githubusercontent.com/datumbox/dstat/master/plugins/dstat_nvidia_gpu.py
sudo mv dstat_nvidia_gpu.py /usr/share/dstat/ #move file to the plugins directory of dstat

To get all the default statistics along with GPU usage (percentage) type the following command:

dstat -a --nvidia-gpu ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system-- gpu-u
usr sys idl wai hiq siq| read writ| recv send| in out | int csw |total 2 1 96 0 0 0|5816k 15M| 0 0 | 0 0 | 45k 98k| 68 0 1 98 0 0 0| 57M 128k| 104B 902B| 0 0 | 42k 85k| 50 8 7 84 1 0 0| 152M 0 | 292B 448B| 0 0 | 52k 93k| 39 1 1 97 1 0 0| 111M 0 | 52B 374B| 0 0 | 51k 116k| 62 0 1 98 1 0 0| 129M 0 | 80B 416B| 0 0 | 43k 85k| 92 0 2 98 0 0 0| 0 0 | 52B 374B| 0 0 | 41k 83k| 81

To get all the usage statistics for each GPU use the following command:

dstat --nvidia-gpu -f
-------------------------------------------gpu-usage-nvidia------------------------------------------
total gpu0 gpu1 gpu2 gpu3 gpu4 gpu5 gpu6 gpu7 gpu8 gpu9 gpu10 gpu11 gpu12 gpu13 gpu14 gpu15 19 23 22 21 21 20 22 23 25 15 18 16 16 16 18 16 14 18 21 20 18 22 21 21 22 21 15 15 14 14 14 15 16 13 10 14 9 13 8 9 11 9 12 9 9 10 10 8 7 9 9 18 20 22 19 21 20 21 21 22 14 15 14 15 14 15 15 15 20 24 22 23 24 25 22 22 22 16 16 16 16 16 16 18 16 15 21 18 19 18 17 17 16 18 14 13 13 14 13 12 11 11 20 24 22 22 24 25 23 24 22 16 18 16 14 17 17 17 15 19 29 18 23 21 22 21 20 21 18 16 16 18 14 14 17 17

How it works

The plugin fetches the number of available GPUs on the system and samples 10 times the usage metric for each GPU. Sampling multiple times will hopefully return smoother metrics than getting a single measurement. After that it averages the usage across all GPUs and returns the results to the user. The source code of the plugin is available here.

Hope you enjoy it, happy GPU programming! 🙂

About Vasilis Vryniotis

My name is Vasilis Vryniotis. I’m a Data Scientist, a Software Engineer, author of Datumbox Machine Learning Framework and a proud geek. Learn more

Source: http://blog.datumbox.com/getting-the-gpu-usage-of-nvidia-cards-with-the-linux-dstat-tool/

AI

Cartoon: Cloud Dating

Avatar

Published

on

Cartoon: Cloud Dating

New KDnuggets cartoon looks at how AI can transform love and romance.


New KDnuggets cartoon gives you a respite from the virus and politics and issues of the day, and looks at how AI can transform love and romance.

Cartoon: Cloud Dating

A Scientist:

Our AI has come up with “Dating in the cloud”. It scans your social media posts and comes up with a great profile for you, automatically inflating your resume and making you more attractive. And no need to decie who pays for the meal!”

Here are other
KDnuggets AI, Big Data, Data Science, and Machine Learning Cartoons
.

and KDnuggets posts tagged
cartoon.

See also other recent KDnuggets Cartoons:

Source: https://www.kdnuggets.com/2020/10/cartoon-cloud-dating.html

Continue Reading

AI

How AI Revolutionize the Way Video Games Developed and Played

Avatar

Published

on

Artificial intelligence is simplifying our lives and changing the way we perform everyday tasks. An AI revolution has already taken place in many industries, like healthcare and marketing. But is it going to affect the future of video games as well? The simple answer is yes.

“Although AI has been an important part of video games since their birth in the ’50s, it’s only lately developed to a point where it can be used to control complex characters.” 

The technology can now process information from players and make the environment more suitable for their needs.  And what can we expect for video games in the future? Can we soon see self-thinking characters with complex countertactics in first-person shooter games? Or all the human staff replaced by robots in online websites with games like Eye of Horus? Let’s take a closer look at how exactly artificial intelligence will revolutionize the gaming industry. Ready?

Will Video Games Get Smarter?

To be honest, there hasn’t been a radical change in how AI governs the behaviour of various virtual entities or powers the procedural generation. AI’s most important components are still pathfinding and finite state machines.

Pathfinding is basically getting from one point to another in the simplest way, and it’s used in all games. And a finite state machine is built for non-playable characters (NPCs), and it allows them to change between different states.

However, some new video games are now also using behaviour and decision trees that have become more sophisticated recently. And although most developers are operating with the same basic concepts (pathfinding and finite-state), they can utilize them on bigger scales thanks to higher processing powers in 2020. 

Games Will Become More Adaptable to Smartphones

A gaming console is not the only equipment to play games on. A smartphone offers the unique possibility to play on the go, so it has become an increasingly popular option for gaming. And since the processing power of mobile phones grows every year, the games for these devices keep getting better and more immersive. 

However, video game fans still need a PC or a console to play the latest games since the weaker filling is not enough to enable mobile platforms to run them. But here’s where AI comes to play.

Every mobile game developer who creates new video games for smartphones is constantly coming up with new AI algorithms and the games keep getting smarter. Looking at mobile games only 3 years ago, we can see immense improvements. Let’s take a look at some key improvements in games made possible by advanced AI. 

Environments Are Getting More Authentic

Everyone’s probably noticed that video games are getting more realistic every year. The environments get more responsive and richer in detail. And that’s all thanks to AI. Using machine learning, AI can respond to any actions a player takes in the game more accurately. AI itself can generate environments that predict your expectations.

For example, the scripted plots that follow only one possible sequence of events are hardly present in any modern game. Instead, it’s up to the player’s decision on which direction the game takes. The plot has many possible directions. This means that you can play the game many times, and the scenario will always be fresh.

However, surprisingly enough, a powerful AI might not provide the most fun gaming experience. Because here’s the thing: if AI gets too unpredictable, the non-player characters it leads can start to direct the players to unnecessary routes. To places that lead to nowhere. It may be a fun experiment, but ultimately players are loving gaming because of the thrill of advancing to the next level. So most probably

AI in games will keep getting more intelligent to interact with players more convincingly. But it will still be completely controlled to keep everything on track. 

Improved Visuals 

The video graphics in modern games are so good that sometimes you can even mix your sense of what’s virtual and what’s reality. This has obviously not been achieved overnight. It’s made possible by hundreds of developers constantly working on new solutions. But we can hope AI to considerably accelerate the process by automating it.

Maybe in the future, we can have software that generates a game environment by scanning real cities. Just imagine having battles with zombies on the streets of your own hometown. 

Conclusion

In the future, we can expect more advanced AI in games making the non-player characters react to your actions with more variety. In first-person shooter games, NPCs can soon make more decisions and coordinate tactical attacks against the player. We can also expect more automized gaming sites. 

And AI is not only powering the characters and scenarios in games. It’s also put to work to develop games faster and cheaper than ever before. And that’s all revolutionary in the gaming business. Are you ready for it?

How do you think video games will look like in the future? Completely powered by AI? Leave comments below, we’d love to hear your thoughts.

                                                           — Thomas Glare endeavoured to explore the world of tech and is currently in his master’s program of Cyber Security who loves to create slot machine games for android.

Also, Read Inspiring AI Tech’s that Transformed Digital World

Source: https://www.aiiottalk.com/artificial-intelligence/how-ai-revolutionize-the-way-video-games-developed-and-played/

Continue Reading

AI

Internet of Things Impact in 2021

Avatar

Published

on

The internet of things — smart devices that connect to the internet to share and receive data — is probably one of the biggest tech success stories of the past 10 years. 

While most consumers know about IoT from consumer-oriented smart devices — like home assistants and security systems — the tech is also vital to many industries. From remote patient monitors to technology that collects factory data and controls massive industrial machinery, sending information over the internet has major benefits for all types of companies.

“The IoT revolution isn’t done yet. 2021 is likely to be another big year for it. We may soon see some of the biggest changes to date as developers find new ways to apply the tech to other industries.” 

Based on the IoT industry’s current momentum and direction, these eight changes are some of the most likely to happen next year.

1. New, More Interoperable Smart Home Devices

As the range of smart home devices grows, interoperability — having tools from different developers that can “talk” with each other — will become much more important.

Manufacturers of IoT devices are making communication between them a key design consideration. It may soon be more normal to coordinate devices from a handful of developers rather than depend on all-in-one solutions that manage your home environment or provide extra security. Instead, smart homeowners may be able to string together complex IoT tech systems, customizing based on their needs and preferences.

2. Adoption of IoT Will Be Almost Universal

According to a new report from Microsoft, 91% of global businesses have adopted IoT technology, up from 85% the year before. The same report showed that more than half of all companies plan to invest even more in IoT technology going forward.

The growing range of IoT solutions — from office management tech to new maintenance tools — means that any business can benefit from IoT tech regardless of industry. 

In 2021, it could be unusual to work with a company that doesn’t use the internet of things in one way or another. By the end of that year, we may see something close to 100% adoption of IoT.

3. 5G and Edge Computing Will Make Near-Real-Time Analysis Possible

After a slow rollout in 2019, major carriers are beginning to deliver 5G coverage on a national scale.

The speed of 5G, plus edge computing tech — which establishes nodes on the edge of the network that can be used for simple calculations — may make close-to-real time analytics in IoT devices possible. This ultra-fast communication will make the technology like driverless cars and real-time industrial sensors more practical going forward.

4. Hospitals Will Adopt a Range of IoT Tech

Over the past few years, developers have started to create various IoT devices for health care professionals. These devices — like internet-connected patient monitors or health-tracking wearables — make it easy for doctors and hospital staff to track a patient’s health, no matter where they are in the building. This could help staff check up on people across floors from one workstation or respond faster to a health crisis.

Shortly, real-time location systems for health care, which allow hospitals to track patients, manage assets and ensure compliance, may become central to the industry. At the least, it could become another valuable tool for health care professionals.

5. Cybersecurity Will Become a Serious Concern

As IoT devices proliferate, they’ll also become a bigger target for hackers. IoT security has improved significantly in the past few years, but they remain uniquely vulnerable to attacks. These safety risks make IoT devices a major opportunity for hackers wanting to break into a secure home or business network.

For developers and companies using IoT devices, keeping IoT tech secure will become critical. Investment in cybersecurity technology will likely grow to levels higher than anything we’ve seen so far.

6. Big-Name Retailers Will Implement Smart Store Technology

Following the semi-successful launch of Amazon’s line of cashier-less stores, Amazon Go, retailers have started to invest more in smart technology for their brick-and-mortar locations.

There are smart shelves, for example, outfitted with weight sensors and cameras to detect when products have run out. Similar tech can automatically check if there are carts that need to be pulled in or customers waiting to check out.

The data from these devices, coupled with AI-powered analytics, may make retail management more efficient. Right now, the tech is still experimental — but a few brands, like Walmart, are already testing smart store management at a few locations.

7. Predictive Maintenance Will Remain Key for Heavy Industry

Predictive maintenance is one of the more practical applications of the internet of things, and a decent number of industrial businesses already use it. The owner of heavy machinery or industrial infrastructure — like a robot arm, transformer or earth-mover — installs special sensors on certain pieces of high-value equipment. 

These sensors gather data on operational characteristics, like vibration, sound or temperature. Over time, this data analysis can give owners a heads-up when equipment is behaving unusually — a sign that it may need emergency maintenance or repairs.

The predictive maintenance market has grown fast over the past few years, and industry analysts estimate it will be worth more than $12 billion by 2025 — up from just $4 billion in 2020. 2021 will probably be a key year for the industry — one where we’ll see continued adoption of predictive maintenance tools and platforms.

8. Self-Driving Car Tests Will Ramp Up

More companies are getting involved in self-driving vehicles in one way or another. Ride-sharing companies, Big Tech businesses and logistics experts are all invested in making vehicles that can drive themselves.

Demand for self-driving cars, as well as other issues — like the ongoing shortage of truck drivers — will likely push companies to expand their tests in 2021. These vehicles still need some serious testing, and its likely tests won’t be done for a while. However, some of those experimental autonomous cars could be on the road by the end of 2021. 

How the IoT Could Reshape Businesses in 2021

The internet of things is likely to continue having a major influence on the economy through next year. New IoT devices, plus supporting techs like 5G and edge computing, mean that just about any business, regardless of industry, will be able to take advantage of what these tools can offer. 

Consumers are also likely to see big benefits as well. While self-driving cars aren’t expected to hit the market until later in the decade, other consumer IoT devices will probably become much more user-friendly. For smart home fanatics who want to outfit their living space with gadgets that can adjust the temperature, dim lights and keep an eye on the front porch, big changes to interoperability will make life better than ever.

Also, Read Future of IoT Devices

Source: https://www.aiiottalk.com/internet-of-things/impact-of-iot/

Continue Reading
Big Data18 mins ago

Best Apps to Check Internet Speed

Fintech3 hours ago

Minimum Wage Workers Can Now Get Guaranteed Payday Loans No Matter What In Canada

Energy3 hours ago

Volvo Trucks Awarded $21.7M from U.S. EPA and South Coast AQMD to Deploy 70 Class 8 VNR Electric Zero-Emission Trucks

Energy3 hours ago

Trilliant Partners with 1NCE for a Cost-Effective Cellular Solution to Cover the Last Mile for IIoT

Energy3 hours ago

LyondellBasell Hosts Annual Global Care Day Supporting Food Security

Energy3 hours ago

Insider Buying Signals Gold Industry Momentum

Energy3 hours ago

In New Book, Veteran Journalist Shows How to End California’s Water Wars, Protect Habitats and Meet State’s Water Needs

Blockchain3 hours ago

How Does the Future Look for Cryptocurrencies in the Financial Market?

Cyber Security4 hours ago

Simple Steps To Protect Your Business Data Across Mobile Devices

Blockchain6 hours ago

How Blockchain Can Help Your Business Grow

Cyber Security7 hours ago

Quelques conseils pour améliorer la sécurité informatique afin de ne pas perdre des données personnelles

Aviation7 hours ago

Norwegian’s New Airbus A321LR Fleet – What To Expect

Ripple Price
Blockchain8 hours ago

Charted: Ripple (XRP) Technicals Suggest a Crucial Breakdown Below $0.24

Fintech8 hours ago

Insurtech Bolttech Expands Its Footprint to South Korea With LG U+

Aviation8 hours ago

Remember The Interjet-Aeromar Codeshare? Its Over

Blockchain9 hours ago

Savvy Traders Are Capitalizing on Two New Crypto Assets, Says Bitcoin Bull Tyler Swope – Here’s How

Aviation9 hours ago

One Of The World’s Busiest International Routes Is Less Than 300km Long

Aviation9 hours ago

Western Sydney cover up possible, hints top bureaucrat

Ethereum
Blockchain10 hours ago

TA: Ethereum Could Narrowly Avoid a Major Drop if it Closes Above $380

Aviation10 hours ago

A Look Inside Drake’s Crazy New Private Boeing 767 Jet

Aviation10 hours ago

Tasmania on track to open to NSW on 2 November

Aviation11 hours ago

Cathay Pacific Weighs Further Job And Pay Cuts

Aviation12 hours ago

What Is A Tail Strike And Why Can They Be Dangerous?

Bitcoin Price
Blockchain12 hours ago

TA: Bitcoin Hesitates Below $11,550, But Upside Break To $12K Seems Likely

Blockchain12 hours ago

Top DEXs Record 197% Average Monthly Trading Volume Increase As DeFi Hype Drives Growth

Blockchain12 hours ago

Bitstamp To Provide Crime Insurance for Crypto Asset Safety

Blockchain12 hours ago

Bitcoin Price Prediction: BTC/USD Struggles to Break $11,500 Resistance, May Set the Stage for Upside Momentum

check-out-thorchain-rune-shapeshift-ceo-erik-voorhees-says.jpg
Blockchain13 hours ago

“Check Out Thorchain (RUNE),” ShapeShift CEO Erik Voorhees Says

Aviation13 hours ago

Melbourne To Top Singapore Airlines’ Flight List In December – Here’s The Catch

Blockchain13 hours ago

Kraken Daily Market Report for October 18 2020

Aviation15 hours ago

United Airlines Moving Forward With Boeing 787 Polaris Retrofits

Chainlink LINK
Blockchain15 hours ago

Analyst: Chainlink Likely to Rally to $16.50 as It Approaches Key Level

Aviation15 hours ago

Victoria’s own website permitted ‘unauthorised’ Kiwi arrivals

Aviation16 hours ago

AirAsia X Cutting Indonesia Arm

options-trends-makes-it-hard-for-this-analyst-to-imagine-a-bitcoin-mega-pump.jpg
Blockchain16 hours ago

Options Trends Makes it Hard for This Analyst to Imagine a Bitcoin “Mega Pump”

Ecommerce16 hours ago

Embodee Announces Beta Availability of New Web Platform for 3D Fashion…

Ecommerce16 hours ago

Money Mailer Joins Capital One Spring Discount Platform for Small…

Blockchain16 hours ago

Outlier Detection with RNN Autoencoders

filecoin-fil-faces-a-miner-crisis-72-hours-into-launch-analyst-says.png
Blockchain17 hours ago

Filecoin (FIL) Faces a Miner Crisis 72 Hours Into Launch, Analyst Says

Aviation17 hours ago

Comment: Virgin bloodletting signals private-equity hijacking

Trending