Click here to Skip to main content
Click here to Skip to main content

CAMEL - CPU Identifier Class

, 14 Jan 2003
Rate this:
Please Sign up or sign in to vote.
A class to detect ALL the features of the CPU / CPUs in the local system. Now at version 1.2
<!------------------------------- STEP 2 ---------------------------> <!-- Include download and sample image information. -->

Demo Screenshot 1   Demo Screenshot 2   Demo Screenshot 3

Introduction

Camel is a generic Windows® / Linux CPU detection class which can display details about the hardware installed within the computer. It can display items such as the CPU manufacturer, CPU model and name, clock speed and other hardware details.

What Do I Get With This?

Well a complete CPU identification and capabilities class. Also there is a complete Windows version detection algorithm included in the demo source. The demo (including pre-compiled binary) provides a replacement for WCPUID and similar applications and as the binary is < 150 kb, it is nice and small.

How Can I Use It?

1. E-Mail me for permission to use/include (always given). I just want to know what purpose it is being used for. It is provided completely for "Non-Commercial Usage."
2. Include the files in your C++ project.
3. Compile!
4. Play!

What About.... AKA: Specific In-depth Details

Supports Microsoft® Windows™ From:

Windows™ 95 / 95 OSR2 / 95 OSR2.5
Windows™ 98 / 98 SE
Windows™ Millennium
Windows™ NT 3.51
Windows™ NT 4.0 Workstation / Server [Including SP1 to SP6a]
Windows™ 2000 Workstation / Server / Advanced Server / Datacenter Server (Including SP1 to SP3)
Windows™ XP Personal / Professional [Including SP1]
Windows™ .NET Web Server / Standard Server / Enterprise Server

Supports Processors From:

Intel / AMD / Cyrix / Rise / UMC / IDT / Transmeta / NexGen / National Semiconductor

See Camel.txt for processor listings... E.g. Pentium III "Coppermine" or Athlon XP 1800+ (Thoroughbred Core).

Detects Hardware Features:

Processor hardware

Single Processors
Dual Processors
Multiple Processors
HyperThreading Technology
Serial Number [if enabled]
On-Chip APIC Hardware
Hard-Coded Chip Names
L1 Cache Size
L2 Cache Size
L3 Cache Size
CPU Clock Speed [of each processor]
Thermal Monitioring Support
ACPI Support
On-Chip PowerManagement [SpeedStep, etc.]

Multimedia Instruction Sets

MMX
MMX+
Streaming SIMD Extensions
Streaming SIMD Extensions [Floating Point]
Streaming SIMD Extensions [MMX]
Streaming SIMD Extensions 2
3DNow!
3DNow!+

General Instruction Sets

Floating Point Unit [FPU]
Time Stamp Counter [TSC]
Conditional Move [CMOV]
Memory Type Range Registers [MTRR]

Other notes:

The 2nd generation CPU speed test is "loosely" based on code from Pavlos Touboulidis. It is far enough removed to be no-longer copyright to him. I think. Anyway this is the obligatory mention.

Known Bugs And Problems:

CAM_00000001: Last Tree Node Fails To Display '+' Icon Properly.
CAM_00000002: CPU Speed Detection Results With +/- 10MHz Deviation. (FIXED: Version 1.2)
CAM_00000003: Fails To Detect APIC ID Properly With < Intel P4 Processors.

NOTE:

Some of the functionality is missing. Some of the menu items do not yet work nor some of the benchmarks. None of these missing features affect the CPU identification code! I apologize and will implement these in time. Or you can.....

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

voodoopriestess
Researcher
Germany Germany
Iain Chesworth graduated from Heriot-Watt University in June of 2002 in Computer Science and Physics. He now works as a C++ programmer and plays with code in his spare time. He is also a keen cyclist and swimmer.

Comments and Discussions

 
SuggestionMessage Automatically Removed Pinmemberkamleshgs15-May-14 7:59 
GeneralMy vote of 3 PingroupMahdi Nejadsahebi24-Oct-11 22:07 
Generalthanks Pinmemberzhanjx2-Feb-10 23:50 
GeneralSimple way to get CPU Name - works with new CPUs (Intel Core2 Extreme - Q9300 2.53GHz) Pinmembermatt200028-Oct-09 7:51 
GeneralBroken link for the newest Camel code PinmemberHunt Chang3-Oct-08 2:03 
Questionno windows code ? PinmemberMember 30685-Aug-08 13:41 
GeneralCPU identification tool for 64-bit windows PinmemberAmol_81_Adya18-Jul-08 3:02 
QuestionOther licencing probabilitiies? Pinmemberjazuju1-Feb-08 2:12 
GeneralDetecting number of CPUs PinmemberGonzus27-Jul-07 11:07 
Hello,
 
I have code like what you have shown in Camel, using the CPUID instruction, to detect the type of CPU the program is running on (under Win32 and Linux). But I have not been able to find out how to detect the number of physical and / or logical CPUs present in the system. Could you provide any hints on how you can do this?
 
Thanks in advance and best regards.

 
Gonzalo Diethelm

QuestionWhere updated version ? PinmemberEnrique Ardanaz15-Mar-07 7:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 15 Jan 2003
Article Copyright 2002 by voodoopriestess
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid